Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #589978

    Hey folks.
    Hope all are well.
    I’ve got a client looking for a new site. But they want something unusual. They want a full-blown top menu on the front page – and a sidebar menu everywhere else.
    I’m NOT talking about putting a submenu in a widget area or the like. I mean a regular Enfold menu up top with logo to the left – but only on the home page. Everywhere else, she wants a full-blown Enfold sidebar menu on the left with a logo up top.
    Possible to do this with a custom template for the front page?
    Can’t give you a link, ’cause it’s not built yet!
    Thanks!
    Mark

    #589979

    Hi interage!

    Yes Mark it is possible, by using a is_homepage() function and then load the menu on homepage and hide on other pages ( on header.php ).
    That is one way, other one is doing it with a custom page template, like you suggested.

    it is possible, just need some further work on how to be developed.

    Cheers!
    Basilis

    #589989

    Hey!
    Thank for the quick response.

    I’m just a little confused. If the overall theme is calling for a sidebar menu, won’t calling the menu using is_homepage() still bring up that side menu?

    Thanks again!

    Mark

    #591179
    #591185

    Hey Josue! Hope all is well.

    Thank you!!!!!!

    Mark

    #591194

    You are welcome Mark, let us know if you need further assistance :)

    Regards,
    Josue

    #609709

    Hey Josue…
    I have one other question. Is it possible to set the top or the side menu for a particular blog category page?
    Thank you!
    Mark

    #610180

    Hi!

    Try changing this line:

    		if($header['header_position'] != "header_top") return avia_header_setting_sidebar($header, $single_val);
    

    To:

    		if(is_category('slug_category')) $header['header_position'] = 'header_sidebar';
    		if($header['header_position'] != "header_top") return avia_header_setting_sidebar($header, $single_val);
    

    Regards,
    Josue

    #610272

    You are TOO awesome.
    So… does this apply to posts? (so if I change the category in ‘slug_category’ to the category of a particular post…) ?
    Thanks VERY much, and have a great weekend!

    #610451

    Hey!

    No, you’d need to run another conditional (in_category):

    		if (is_category('slug_category') || in_category('slug_category'))  $header['header_position'] = 'header_sidebar';
    		if($header['header_position'] != "header_top") return avia_header_setting_sidebar($header, $single_val);
    

    Regards,
    Josue

    #610454

    Awesome. You’re the best…. thanks!

    #610463

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.