Ready to get started?Download WordPress


Hueman styles and ajax page reloading (3 posts)

  1. slr1979
    Posted 3 months ago #


    I am using the Advanced Ajax Page Reloader and Hueman

    Everything is working fine until I try to select a different layout for each section of the site in the theme options.

    When I tselect different layouts, the styles are not loaded after the ajax page reload and therefore the layout stays the same as the last area I have visited

    i.e Home set to single column layout
    Archive set to three column layout
    Navigate to archive from home results in single page layout

    Is there any way to reload the styles after ajax call?

    Many thanks

  2. Alexander Agnarson
    Theme Author

    Posted 3 months ago #


    The function in functions.php which adds the body (layout) class is:

    function alx_body_class( $classes ) {
    $classes[] = alx_layout_class();


    add_filter( 'body_class', 'alx_body_class' );

    Unfortunately I have no idea how to go about fixing the Ajax issue so that it is reloaded/re-added after. Just giving you the little help I can.

    I guess you would need to somehow re-fire the body_class filter on ajax page-switch, or something (just guessing).

  3. slr1979
    Posted 3 months ago #

    Hi Alexander,

    Many thanks for that, it will be very useful in trying to figure out how to handle the ajax. To be honest, I am no expert in ajax or wordpress so if you do think of anything, a forum/link, a place to start etc, bits of useful example code, I would be very grateful.

    Thanks for the excellent template, I just hope I can get this working I can really use your template to it's fullest potential.



You must log in to post.

About this Theme

About this Topic