Support » Plugin: WordPress Infinite Scroll by Auto Load Next Post » Auto Load Next Post with Weaver Xtreme.

  • Resolved guiguilyon

    (@guiguilyon)


    Hi,

    I’m trying to make this plugin work with the theme
    Weaver Xtreme. This a customizable theme. So I guess the selectors are not standard. I tried to find theme using the method explained in the help of the plugin here. But it doesn’t work. I also asked the Weaver developpers. But their answers didn’t help me. Or I didn’t understand it maybe.

    Can you help please? 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sébastien Dumont

    (@sebd86)

    Hi @guiguilyon

    The theme selectors are fine as default from what I can see. The theme template files are located in the template folder so you will need to filter the location.

    You can do that by using a filter. I have prepared the code for you so all you have to do is add it to the functions.php file, either in the main theme or your child-theme.

    https://gist.github.com/seb86/4d5b15bf64b370b4b920fafab97c8608

    Hope that helps.

    Hi. Thanks for your help!

    I didn’t totally understood your explanations.

    I’m a noob, so please be more precise in your explanation. 🙂

    Here is what I did :

    – I left the default selectors in the plugin settings.

    – I added

    function my_template_location() {
        return 'templates/';
    }
    add_filter( 'alnp_template_location', 'my_template_location' );

    to the file “functions.php” located inside the weaver-extreme folder of my site.

    Then I realised I might have to add the location path of the “template” folder located inside the Weaver-Extreme folder of my site. Which I did. I guess. But I was not sure where to put it exactly. So I put it instead of the first “my_template_location” of the php code you provided. It didn’t work. I tried between the brackets, didn’t work either.

    I develop locally using AMPPS. So the Weaver-Extreme template folder is located at the path : “C:\Program Files (x86)\Ampps\www\cleaninstalltest\wp-content\themes\weaver-xtreme\templates”. Should I put the whole path, or just “wp-content\themes\weaver-xtreme\templates” ? Should I not put it at all ?

    I’m lost.

    Sorry for the facepalming. 😀

    Plugin Author Sébastien Dumont

    (@sebd86)

    Just add the code that I provided as is to your functions.php file. Locally or online the code I shared should work.

    Hi,

    I went back to work recently and finally figured how to make it work.
    I had to change the theme selectors from default.
    But I couldn’t find theme in the code of the pages using the inspect tool of my browser.

    But I got inspired by another similar plugin, Catch Infinite Scroll. I just used some of the theme selectors this plugin uses instead of the default one provided by ALNP. And it works!

    So if it can help another user of the Weaver Xtreme theme, here they are :

    Content Container : div.content or #content
    Post title : h1.entry-title
    Post Navigation : nav.navigation
    Comment Container : div.comments or #comments

    The only problem is that the comments doesn’t disappear even if I chose so in the misc settings. But if I put the default theme selector for the comments, the plugin doesn’t work at all.

    Do you have any idea how to hide the comments section please?

    Here is a test blog I use for testing plugins where you can check this out with Weaver Xtreme.

    Other question : can your plugin enable infinite scroll in the list of articles too (like Catch Infinite Scroll)? So that I could only use yours for both features.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Auto Load Next Post with Weaver Xtreme.’ is closed to new replies.