• Hi!

    On https://damiansim.com/amir/, I’ve entered the correct menu container class (the current list/page items are working).

    However, when navigating from page to page via the top menu, it alternates between the browser fully loading/AJAX loading.

    Ajaxifying from page to page works fine if I put in the wrong menu container class, but then of course, the current list/page item effects don’t work.

    Happens in all browsers / Theme is a child-theme of Twenty Eleven. I tested it with default Twenty Eleven/Twelve/Thirteen/Fourteen themes, and the same behavior is exhibited.

    I’ve noticed a few others have had similar issues. Is there a definitive solution to this?

    https://www.ads-software.com/plugins/ajaxify-wordpress-site/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter dimmy1985

    (@dimmy1985)

    Ok well I think I have a solution, but it doesn’t seem ‘correct’…

    from

    Important Note:
    If your jQuery core library version is less than 2.0 then please go to the plugin’s js directory open ajaxify.js file in your favourite editor then search for .on and replace it by .live. This is because the plugin is written for as per latest version of jQuery

    Although I’m using WP 3.9.1, my jquery.js in the wp-includes folder is apparently v1.11 (I’m not even sure if this is what was being referred to above). I would’ve assumed WP ships with the latest version, no?

    Could someone confirm that this is a legitimate fix/that I’ve interpreted this correctly?

    Thanks

    DS

    The site I’m currently working on (https://diosesdeltiempo.com/) behaves very similar. If I put the wrong class for the menu container the pages will ajax correctly but the menu’s active state wont work. When I put the correct class for the menu container the menu behaves correctly but ajaxing will only work every other time. It will ajax correctly one time and it will load the page the other time.

    I tried editing the ajaxify.js file like dimmy1985 suggested, and even tried upgrading jQuery to the latest but still no luck.

    Any suggestions will be very appreciated.

    Thanks

    Thread Starter dimmy1985

    (@dimmy1985)

    I see your menu class as “nav”. It actually has two so: nav & fl

    Perhaps after line 152 of ajaxify.js, add another line as such:

    151: //Append new menu HTML to provided classs
    152: $('.' + aws_data['mcdc']).html($menu_list.html());
    153: $('.fl').html($menu_list.html());

    and of course, your main content id is #content

    And of course, replacing .on with .live (the page I visited is still on jquery 1.11

    Plugin Author Manish Kumar Agarwal

    (@manishkrag)

    Do you guys still having problem related to menu?

    Hello guys,

    I just decided to drop the plugin since I’m using a script to randomly display background images in the header in every pageload.

    Plugin Author Manish Kumar Agarwal

    (@manishkrag)

    Hello Ebarcena,

    In such case how you will play tracks continuously?.

    script to randomly display background images in the header in every pageload: can be handled by AWS plugin.

    My Other contact details are present in plugin file

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Ajaxify working inconsistently between pages w/ correct menu container set’ is closed to new replies.