• Resolved kosmikk

    (@kosmikk)


    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://www.ads-software.com/plugins/malinky-ajax-pagination/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author craigramsay

    (@malinkymedia)

    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

    (@kosmikk)

    Thanks very much! It absolutely works!

    Thread Starter kosmikk

    (@kosmikk)

    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

    (@malinkymedia)

    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

    (@kosmikk)

    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

    (@kosmikk)

    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

    (@malinkymedia)

    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

    (@malinkymedia)

    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

    (@kosmikk)

    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

    (@malinkymedia)

    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.