Tagged: menu
-
AuthorPosts
-
February 26, 2016 at 8:03 pm #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!
MarkFebruary 26, 2016 at 8:13 pm #589979Hi 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!
BasilisFebruary 26, 2016 at 8:21 pm #589989Hey!
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
February 29, 2016 at 10:54 pm #591179Hey Mark!
Refer to:
Regards,
JosueFebruary 29, 2016 at 11:00 pm #591185Hey Josue! Hope all is well.
Thank you!!!!!!
Mark
February 29, 2016 at 11:07 pm #591194You are welcome Mark, let us know if you need further assistance :)
Regards,
JosueApril 7, 2016 at 3:47 pm #609709Hey 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!
MarkApril 8, 2016 at 11:50 am #610180Hi!
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,
JosueApril 8, 2016 at 2:56 pm #610272You 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!April 9, 2016 at 12:06 am #610451Hey!
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,
JosueApril 9, 2016 at 12:13 am #610454Awesome. You’re the best…. thanks!
April 9, 2016 at 12:44 am #610463You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.