Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

If you Like the Asteria Lite Theme and want to Keep it free forever Please Rate it on Wordpress.org (It only takes a few seconds)
Viewing 18 posts - 1 through 18 (of 18 total)

AJAX navigation

Home Forums Free Theme Support Asteria Lite AJAX navigation

  • #436292

    Cla

    Hi!
    i have a problem with the page navigation. On the front page everything is ok, if I use the ajax navigation or if I disable it.
    On the other pages the navigation doesn’t work, if I use the ajax navigation it shows the same posts, and if I disable the ajax function it doesn’t load anything. Is there a solution for this problem?
    site: www seminarioverona it
    thank you!

    #437700

    Towfiq I.

    administrator

    this shouldn’t happen? whats your site address?

    #438187

    Cla
    #440139

    Towfiq I.

    administrator

    Can you send me a page link where the pagination should work and not working? I checked the frontpage and the pagination works fine.

    #440244

    Cla

    In the front page it works, it doesn’t work in any category page.
    http://www.seminarioverona.it/?cat=4 it doesn’t work

    #442162

    Towfiq I.

    administrator

    open up javascript.php and replace this line:

    this.href = this.href.replace('/page/', '&paged=');

    with this:

    this.href = this.href.replace('/page/', '&paged=');

    #444407

    cla

    I have tried, but it does not solve the problem, it remains the same.

    #446016

    Towfiq I.

    administrator

    are you sure you have made the changes? can you copy the code of your javascript.php file and paste it in a pastebin.com page and post it here?

    Thanks

    #447163

    Cla

    yes, but nothing changes,
    here it is: http://pastebin.com/nR3sBWP3
    thank you!

    #448270

    Towfiq I.

    administrator

    I think you will just have to disable “Ajax Pagination” from Asteria Options.

    #448595

    cla

    I have tried, but the url is http://www.site.com/?cat=26#038;paged=2
    it works only in the front page

    #449786

    Towfiq I.

    administrator

    open up layout1.php and replace this:

    get_pagenum_link( $big )

    with this:

    get_pagenum_link( $big , false)

    let me know how it went.

    Regards

    #450309

    Cla

    no sorry it does not fix the problem

    #450580

    Towfiq I.

    administrator

    This is actually a WordPress bug which will be fixed in WordPress 4.2 (https://core.trac.wordpress.org/ticket/30831)

    There is a fix for now. Open up layout1.php and replace this:

    	<?php
            global $wp_query;
            $big = 999999999; // need an unlikely integer
                echo paginate_links( array(
                    'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
                    'format' => '?paged=%#%',
                    'current' => max( 1, get_query_var('paged') ),
                    'total' => $wp_query->max_num_pages,
                    'show_all'     => true,
                    'prev_next'    => false
                
                ) );
        ?>

    with this:

    	<?php
            global $wp_query;
            $big = 999999999; // need an unlikely integer
                echo paginate_links( array(
                    'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
                    'format' => '?paged=%#%',
                    'current' => max( 1, get_query_var('paged') ),
                    'total' => $wp_query->max_num_pages,
                    'show_all'     => true,
                    'prev_next'    => false,
                'add_args' => false
                ) );
        ?>

    Regards

    #451343

    Angie

    Hello Towfiq,

    I have a problem with the Ajax pagination too.

    The problem is in this page . When you click con the image you can go on with the navigation and you land on . Now you can see the first page of “tips and tricks”, but you can’t see the second one. The site seems to work but nothing appears on that second page.

    If I turn off the Ajax pagination I can fix the problem but the website is slow. I’ve tried to replace the code in layout1.php, as you reccomended in your previous thread, but nothing happens.

    Could you help me, please?
    Thank you so much

    #451346

    Angie

    Sorry… Links missing!

    Here you are again

    Hello Towfiq,

    I have a problem with the Ajax pagination too.

    The problem is in this page http://www.liberamentepensando.it/consigli-di-viaggio-2/. When you click con the image you can go on with the navigation and you land on http://www.liberamentepensando.it/tips-and-tricks/ . Now you can see the first page of ā€œtips and tricksā€, but you canā€™t see the second one. The site seems to work but nothing appears on that second page.

    If I turn off the Ajax pagination I can fix the problem but the website is slow. Iā€™ve tried to replace the code in layout1.php, as you reccomended in your previous thread, but nothing happens.

    Could you help me, please?
    Thank you so much

    #451776

    Cla

    it works now!
    thank you very much Towfiq!!!

    #452672

    Towfiq I.

    administrator

    Angie this will be fixed in the Next version.

    Thanks

You must be logged in to reply to this topic.