Custom menu

Posted in: Newspaper
Post count: 23

Hi,

I posted in Envato support before and replied Alin V. (http://themeforest.net/item/newspaper/5489609/comments?page=367&filter=all#comment_12517324)

For Ads ok. I understand. Is very easy to modify.

For custom menu for category, I forgot to say you that I have only one category to be set with a custom menu. I saw the screenshots and I think that’s enough put some code from what I understand (yes, but which one?. I saw also Wp codex…). Please, if you can give it to me I’d be very grateful. I tried to call is_category function but does not work on line 12 of the header-menu.php file. I have just one category That I want to show a different menu.

Many thank
Eddy

Post count: 22421

Hello Eddy,

The method Alin provided works as expected. You simply have to use the is_category condition correctly
Try it like this: http://screencast.com/t/QqdhTCLIi
result:
homepage: http://screencast.com/t/edzeGXCUS4Gj
gadgets category: http://screencast.com/t/WomZDAB0kd

Thanks!

Post count: 17

Thanks it worked perfectly. Just got stuck with event calendar pro posts, any idea how to get it working for event posts?

Post count: 22421

Hi,
For the events post template you have to change the condition. In the code provided above, there is a is_category function mentioned so it will only be different on that specific category. For your custom post type, you will have to search for a function that can target the event post type. For example the events callendar offers function refferences like so :https://theeventscalendar.com/function/is_event/
I hope this helps.
Thank you!

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