Title: please help setup
Last modified: September 1, 2016

---

# please help setup

 *  Resolved [kosmikk](https://wordpress.org/support/users/kosmikk/)
 * (@kosmikk)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/please-help-setup/)
 * Hello, the theme I’m trying to use with your plugin is Magnus [free from repository]
 * I tried pluging in the following:
 * Posts Selector: .main
    Post Selector: .section.post Navigation Selector: .navigation
   Next Selector: .nav-links .nav-previous
 * and it doesn’t work, I’m not sure that they are correct, advise please if something
   needs to be fixed.
 * [https://wordpress.org/plugins/malinky-ajax-pagination/](https://wordpress.org/plugins/malinky-ajax-pagination/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [craigramsay](https://wordpress.org/support/users/malinkymedia/)
 * (@malinkymedia)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/please-help-setup/#post-7570158)
 * 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
 *  Thread Starter [kosmikk](https://wordpress.org/support/users/kosmikk/)
 * (@kosmikk)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/please-help-setup/#post-7570211)
 * Thanks very much! It absolutely works!
 *  Thread Starter [kosmikk](https://wordpress.org/support/users/kosmikk/)
 * (@kosmikk)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/please-help-setup/#post-7570212)
 * 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.
 *  Plugin Author [craigramsay](https://wordpress.org/support/users/malinkymedia/)
 * (@malinkymedia)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/please-help-setup/#post-7570232)
 * 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
 *  Thread Starter [kosmikk](https://wordpress.org/support/users/kosmikk/)
 * (@kosmikk)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/please-help-setup/#post-7570264)
 * 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(); ?>
 *  Thread Starter [kosmikk](https://wordpress.org/support/users/kosmikk/)
 * (@kosmikk)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/please-help-setup/#post-7570265)
 * that above is the home.php file
 * would you help me please, I have no idea how to add another css class here.
 *  Plugin Author [craigramsay](https://wordpress.org/support/users/malinkymedia/)
 * (@malinkymedia)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/please-help-setup/#post-7570267)
 *     ```
       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(); ?>
       ```
   
 *  Plugin Author [craigramsay](https://wordpress.org/support/users/malinkymedia/)
 * (@malinkymedia)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/please-help-setup/#post-7570268)
 * 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
 *  Thread Starter [kosmikk](https://wordpress.org/support/users/kosmikk/)
 * (@kosmikk)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/please-help-setup/#post-7570329)
 * 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 🙂
 *  Plugin Author [craigramsay](https://wordpress.org/support/users/malinkymedia/)
 * (@malinkymedia)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/please-help-setup/#post-7570330)
 * Great news! I’m pleased you’ve got things and working now and thanks again for
   using the plugin.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘please help setup’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/malinky-ajax-pagination_e2c6ba.svg)
 * [Ajax Pagination and Infinite Scroll](https://wordpress.org/plugins/malinky-ajax-pagination/)
 * [Support Threads](https://wordpress.org/support/plugin/malinky-ajax-pagination/)
 * [Active Topics](https://wordpress.org/support/plugin/malinky-ajax-pagination/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/malinky-ajax-pagination/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/malinky-ajax-pagination/reviews/)

## Tags

 * [scrolling](https://wordpress.org/support/topic-tag/scrolling/)

 * 10 replies
 * 2 participants
 * Last reply from: [craigramsay](https://wordpress.org/support/users/malinkymedia/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/please-help-setup/#post-7570330)
 * Status: resolved