How to delete footer in postleaf

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

How to delete footer in postleaf

Post by gautamz07 »

I just recently installed postleaf a bloggiing platform and all i wanted to do now is edit the theme that i am using in this platform , so basically i opened the footer file in this theme and it looked as below:

Code: Select all

 </div>
    <footer class="animated fadeIn" id="footer">
        <div class="container text-center">
            <form class="search-form" action="{{search_url}}" method="GET">
                <input type="search" name="s" placeholder="Search">
                <button type="submit">Go</button>
            </form>
            <p class="copyright"><span>Made by {{@settings.title}}.</span> <span>Powered by Postleaf.</span></p>
            <a href="https://github.com/postleaf/phantom" class="theme">Theme: Phantom</a>
        </div>
    </footer>

    {{postleaf_foot}}

    {{! Deferred scripts }}
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script type="text/javascript">
    if (typeof jQuery == 'undefined') {
        document.write('<script type="text/javascript" src="{{theme_url 'assets/js/jquery-1.11.3.min.js'}}"></'+'script>');
    }
    </script>

    <script src="{{theme_url 'assets/js/stellar.js'}}"></script>
    <script src="{{theme_url 'assets/js/phantom.js'}}"></script>
    <script src="{{theme_url 'assets/js/jquery.timeago.min.js'}}"></script>

    <script>jQuery(document).ready(function() { jQuery("time.timeago").timeago(); });</script>

</body>
Now i deleted the footer and kept only the below portion:

Code: Select all

</div>
    {{! Deferred scripts }}
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script type="text/javascript">
    if (typeof jQuery == 'undefined') {
        document.write('<script type="text/javascript" src="{{theme_url 'assets/js/jquery-1.11.3.min.js'}}"></'+'script>');
    }
    </script>

    <script src="{{theme_url 'assets/js/stellar.js'}}"></script>
    <script src="{{theme_url 'assets/js/phantom.js'}}"></script>
    <script src="{{theme_url 'assets/js/jquery.timeago.min.js'}}"></script>
    <script>jQuery(document).ready(function() { jQuery("time.timeago").timeago(); });</script>
</body>
Now when i refresh the preview in my admin panel i see no difference , infact i see the same. Footer , so how exactly do i delete the footer ??

P.S. i am mostly a frontEnd guy , so maybe i am missing something really basic here.

Thank you.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How to delete footer in postleaf

Post by Christopher »

Does this application have a page cache? If so you may need to delete the cache file to see the change.
(#10850)
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: How to delete footer in postleaf

Post by gautamz07 »

I am just a HTML guy and usually when i save and refresh the page , things work just fine hahaha.

I am using the below lightweight framework

https://github.com/Postleaf/postleaf

Any idea how i clear the cache ? ... would i have to tweak something in the admin panel ?

Thank you.
Gautam.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How to delete footer in postleaf

Post by Celauran »

Well, there is a content/cache directory, so I'd start there. Doesn't seem to be much in the way of documentation.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How to delete footer in postleaf

Post by Celauran »

Alternately, after spending all of one minute looking at their site, https://community.postleaf.org/t/is-it- ... leted/50/7
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: How to delete footer in postleaf

Post by gautamz07 »

Thanks celauran :)
Post Reply