Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author TomHarrigan

    (@tomharrigan)

    Hey thanks! If you added the add_theme_support() tag to your functions.php file, can you paste what your configuration looks like?

    I’ll download a copy of the theme your using and test things out to see where the problem is coming from as well.

    Thanks for your patience and thanks for trying the plugin.

    Thread Starter mehthesheep

    (@mehthesheep)

    Thanks Tom!

    Here’s the config.

    function mytheme_infinite_scroll_init() {
    	add_theme_support( 'infinite-scroll', array(
    	'container' => 'content',
    	'footer' => false,
    	'type'           => 'scroll',
        'footer_widgets' => false,
        'wrapper'        => true,
        'posts_per_page' => false,
    	) );
    }
    add_action( 'init', 'mytheme_infinite_scroll_init' );
    
    function mytheme_infinite_scroll_render() {
    	get_template_part( 'loop' );
    }
    
    function mytheme_infinite_transporter_init() {
    	add_theme_support( 'infinite-transporter', array(
    	    'type'            => 'scroll', // scroll | click
    	    'requested_type'  => 'scroll', // store the original type for use when logic overrides it
    	    'footer_widgets'  => false, // true | false | sidebar_id | array of sidebar_ids -- last two are checked with is_active_sidebar
    	    'container'       => 'content', // container html id
    	    'wrapper'         => true, // true | false | html class
    	    'footer'          => false, // boolean to enable or disable the infinite footer | string to provide an html id to derive footer width from
    	    'google_analytics'=> true, // boolean if using google analytics, set to true
    	    'post_order'    => false, // boolean. false to display newest post after initial post. True to display next reverse chronological post after current post.
    	    'footer_callback' => false, // function to be called to render the IS footer, in place of the default
    	    'posts_per_page'  => false, // int | false to set based on IS type
    	    'click_handle'    => true, // boolean to enable or disable rendering the click handler div. If type is click and this is false, page must include its own trigger with the HTML ID 'infinite-handle'.
    	) );
    }
    add_action( 'init', 'mytheme_infinite_transporter_init' );
    Plugin Author TomHarrigan

    (@tomharrigan)

    Hey, I just released a version 1.2, please update to that version. It’ll allow your theme structure to work with the plugin.

    Delete the entire code snippet that you pasted above from your functions.php file. The Jetpack infinite scroll module isn’t going to work with your theme because of its structure, and my plugin includes all of the functionality that exists in the Jetpack infinite scroll module anyway.

    Replace that with the following snippet to properly configure Infinite Transporter for your site: https://gist.github.com/tomharrigan/f093b89bbe2709273e6e

    Most of the settings are the defaults, so they’re not needed, and then I added the ‘render_hueman’ function to handle displaying your single posts nicely, maintaining the structure and style. It’ll also allow infinite scrolling behavior on your home and category pages, using that two column layout that your theme uses.

    I set up a demo website using your theme with all of this already configured so that you can take a look at Infinite Transporter all set up and working if you’d like.

    Here’s an example article page: https://hueman.thomasharrigan.com/2014/12/20/hello-world/

    And the home page: https://hueman.thomasharrigan.com/

    Hi,
    I use the same theme. Your plugin is awesome and the above code works ok, but I have three questions.

    1. How can I load social share buttons next to each loaded post? The buttons are scrollable.
    2. Is there a way to load Disqus below each post? Right now it load only in the first one.
    3. How can I limit the number of loaded posts to 3?

    Appreciate your help!

    Plugin Author TomHarrigan

    (@tomharrigan)

    Thanks @jackgraal.

    Please create a new thread for help. You have the same theme, but different question. Also it makes it harder for me to manage support when there are multiple support queries in a single thread.

    Thanks a bunch, will start looking into those in the meantime ??

    Plugin Author TomHarrigan

    (@tomharrigan)

    Hey mehthesheep, I’m marking this as resolved since I’ve not heard back from ya. Jack and the demo I linked to both show that the code snippet I included properly enable the infinite scrolling functionality for your theme. Thanks!

    Thread Starter mehthesheep

    (@mehthesheep)

    Thanks Tom, I’ve put in the code to functions.php and updated the plugin but can’t notice any difference.

    Is there something to do with cache? I’ve cleared all the cache though. The home page still presented in few pages and article not loading after one another in single post.

    Thread Starter mehthesheep

    (@mehthesheep)

    Tom, I found this javascript error when scroll to the bottom of post.

    https://www.evernote.com/shard/s120/sh/8fb8a6ec-77eb-4e14-a57e-6108e2e29029/503be7c905c7a370a56422f6e5af5811

    Plugin Author TomHarrigan

    (@tomharrigan)

    Yea I see it. The plugin is properly getting the next post, currently, it’s trying to load in your “FINDING VEGETARIAN FOOD? HERE’S 8 DELICIOUS RESTAURANTS IN BALI YOU MUST TRY” post after the “7 unique hotels post”

    Looks like the plugin can’t put the content into the page though because of the error you’re seeing. Has the Jetpack infinite scroll module been deactivated?

    If you have a staging environment, you should test things out with your other plugins deactivated and see if it is working properly. If it does, then reactivate your other plugins until the error occurs to find the culprit.

    Other than that, I’m not sure what else I can do, as everything is running properly on the demo site I set up for your theme.

    Thread Starter mehthesheep

    (@mehthesheep)

    Those are great help, Tom.

    Thanks!

    I’ve found the problem child. It’s the advanced image lazy load plugin. Can’t work in harmony : https://www.ads-software.com/plugins/advanced-lazy-load/

    Thread Starter mehthesheep

    (@mehthesheep)

    Jack raised some great add-ons I’m looking at too, look forward to them in another thread!

    Tom,

    I’m trying to install your plugin at my website: https://www.macacovelho.com.br/ but the .js file is not loading, do you know why ?

    My theme is truepixel

    Thanks and congrats

    Plugin Author TomHarrigan

    (@tomharrigan)

    Hey rafaelcmrj,

    Have you added the following to your functions.php file?

    add_theme_support( 'infinite-transporter', array( 'container' => 'content_box' ) );

    Tom,

    Thank you for your reply.

    Yeah, I did it and it loads css but not js..

    You can check out a non-cache version: https://admin.macacovelho.com.br/o-implante-que-deu-muito-errado/

    Plugin Author TomHarrigan

    (@tomharrigan)

    hm, that’s odd, sorry. Unfortunately I don’t have access to that theme. If ya have a zip file of it available, I might be able to take a quick look if I get a moment tonight. [email protected]

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Not working to show post content’ is closed to new replies.