Ajax Infinite scroll

Home Forums WordPress Theme Support Madura Mag Pro Ajax Infinite scroll

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  vyapaari 9 years, 12 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2987

    vyapaari
    Member

    Hi raja,

    How to increase number of posts when i tap on load more (default is 4)..?? where did you define it?

    #3000

    Raja CRN
    Keymaster

    Hi,

    You can change that default posts count by editing the theme_functions.php.

    Goto > Theme Folder > Includes > theme_functions.php

    and find the line madura_themepacific_json_ajax_fn()

    then You can change posts_per_page' => 4, to your desired number.

    #3199

    vyapaari
    Member

    and one more i’ve installed floating social bar by wp-beginner to my site.. http://test.vyapaari.net. plugin not appearing on the articles when i tap on load more..

    I tried changing theme-functions.php file. when i try to insert the below code in the line 374 it throws an error..
    if ( function_exists( ‘floating_social_bar’ ) )
    floating_social_bar( array( ‘facebook’ => true, ‘twitter’ => true, ‘google’ => true, ‘linkedin’ => true, ‘static’ => true ) );

    if there any option?

    #3201

    Raja CRN
    Keymaster

    Yes, the Posts loaded by Ajax will not fetch the social plugin by default. Like You said you have to add the code there. We’ll test that and let you know

    #3202

    vyapaari
    Member

    I’ve added the code snippet at

    $parsed = <div class = “social-bar”><?php if ( function_exists( ‘floating_social_bar’ ) )
    floating_social_bar( array( ‘facebook’ => true, ‘twitter’ => true, ‘google’ => true, ‘linkedin’ => true, ‘static’ => true ) ); ?> </div> after excerpt

    It’s just throwing this

    true, ‘twitter’ => true, ‘google’ => true, ‘linkedin’ => true, ‘static’ => true ) ); ?>

Viewing 5 posts - 1 through 5 (of 5 total)

Only Verified Customer of this Theme Can post reply to this Support Topic! .