Support » Theme: Hueman » Hueman styles and ajax page reloading

  • Hi,

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    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).

    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.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hueman styles and ajax page reloading’ is closed to new replies.