Hi, based on the theme preview the selectors would be as follows:
Posts Selector: .site-main
Post Selector: .post
Navigation Selector: .navigation
Next Selector: .nav-links .nav-previous a
Thanks
Thanks very much! It absolutely works!
I have another [hopefully] quick question,
I didn’t realize that this plugin also makes infinite scrolling from one post to another [when viewing one post, another loads underneath]
Is there a way to not have that, I just want it to load in the front [homepage] and nowhere else.
I’ve had a quick look and the theme will use the same selectors in both of those templates that’s why the plugin will trigger for both the home page and a single.
I’m not sure of your exact setup but you’ll need to amend the home.php file, assuming that’s what is being used for your front page.
In this file add another CSS class alongside the .site-main. Then in your plugin settings update the Posts Selector to this new class. This will make that template different to the single and therefore the plugin won’t get triggered on the single.
Hope that makes sense.
Thanks
get_header(); ?>
<?php if ( have_posts() ) : ?>
<div id=”main” class=”site-main”>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( ‘content-home’, get_post_format() ); ?>
<?php endwhile; ?>
</div>
<?php the_posts_navigation(); ?>
<?php else : ?>
<div id=”primary” class=”content-area”>
<main id=”main” class=”site-main” role=”main”>
<?php get_template_part( ‘content’, ‘none’ ); ?>
</main><!– #main –>
</div><!– #primary –>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
that above is the home.php file
would you help me please, I have no idea how to add another css class here.
get_header(); ?>
<?php if ( have_posts() ) : ?>
<div id="main" class="site-main home-pagination">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content-home', get_post_format() ); ?>
<?php endwhile; ?>
</div>
<?php the_posts_navigation(); ?>
<?php else : ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php get_template_part( 'content', 'none' ); ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Replace your home.php file with the code I’ve posted above and then change your one your settings in the plugin admin.
Posts Selector: .home-pagination
Let me know how you get on. Thanks
Wow Malinky! You’re a magician π
thank you very much, I didn’t see that you responded to my previous email and rejoiced just now when I saw your message and implemented it, it works with the infinite scroll on the front/posts and at the same time each post loads individually!
Thank you again for taking the time to help and for this plugin of course π
Great news! I’m pleased you’ve got things and working now and thanks again for using the plugin.