Fix post load code

Asked

Viewed 36 times

0

I am customizing this template and the "load more posts" of the "Latest post" goes into infinite looping, not loading the posts.

I’m not sure the code is loading the javascript correctly. The template I’m using is this: http://gooyaabitemplates.com/livepreview/punjab-press-responsive-blogger-template/

This is the script, there’s something wrong with it not to load?

<script class='jshilang' type='text/javascript'>
        //<![CDATA[
            searchxx({summaryLength:100,scrthumbSize:50});   
            jQuery('.sidebar h2, .footer h2').wrapInner('<span/>');
            callregex(jQuery);
        //]]>
    </script>

    <b:if cond='data:blog.url != data:blog.homepageUrl'>    
    <b:if cond='data:blog.pageType != &quot;static_page&quot;'>
    <b:if cond='data:blog.pageType != &quot;item&quot;'>
        <script class='jshilang' type='text/javascript'>
            //<![CDATA[
viewMode({
  viewmodedefault:'list',
  cookielist:'list1',
  cookiegrid:'grid1'
});
loadMorePost({
  viewmodedefault:'list',
  cookielist:'list1',
  cookiegrid:'grid1'
});
            //]]>
        </script>
  • Welcome to Stackoverflow in English. A good practice to start a healthy discussion is to read the Guide to How to Ask. Start by following these recommendations, especially knowing what types of questions to ask, how to create a minimal example that is complete and verifiable, and even what to do when someone answers you.

  • Thanks! I put the script I found in the template to see if it is correct.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.