Custom Menus Menus

Posted in: Newspaper
Post count: 156

Hello. Loving Newspaper. It is phenomenal. I would like to have custom menus for pages like category, subcategory, all articles, blog, etc. The main menu is wonderful, but on certain pages like those I listed (and perhaps others) I would like to use a different menu. Can you help me accomplish this?

Thanks.

Philip

Post count: 3343

Hi,
You need to add new menu here: http://screencast.com/t/aH0khR6ul and you will have a new menu location: http://screencast.com/t/U2dqj0DF

Then, to use that menu on a category, like Fashion category change like here: http://screencast.com/t/Fl5833sW

You can add condition for each category, post ID, page, etc.
For posts use this: is_post(IDpost); and for pages use is_page(IDpage)

Thanks for the message!

Post count: 156

Thank you for the assistance. How can I make my theme support more than 3 menus in order to add menu(s)?

Philip

Post count: 3343

Hi,
Add a line of code like here for each menu that you want to create: You need to add new menu here: http://screencast.com/t/aH0khR6ul and you will have a new menu location: http://screencast.com/t/U2dqj0DF

Thanks!

Post count: 156

Marius, thanks for your continued support. After I add a the new menu (following the screenshots you provided), my site opens to a white screen only.

Is there something I’m missing?

Philip

Post count: 3343

Hi,
Please make sure you have modify exactly like i point you. Should work. Show me how you have modified?

Thanks

Post count: 58

Hi Marius,

How does this work for Child themes?

I’ve tried adding a directory called ‘wp_booster’ to the ‘includes’ folder (i.e. my-child-them/includes/wp_booster/td_menu.php) but it doesn’t seem to be working.

Thanks,

Post count: 854

hi,

have you try Marius solution on your site (not the child theme)? , duos it worked?

Thanks for you message.
Radu A.

Post count: 58

Hi Radu,

I’ve just tried placing the ‘td_menu’ file directly into Newspaper not the child theme and it appears to work. newspaper/includes/wp_booster/td_menu (I’ve not tried the second part yet to use that menu on a category)

This is great news!

Won’t this mean though that I’ll have to edit that file every time there is an update to Newspaper?

Thanks,

Post count: 156

Tried again today. White screen only from user side and for admin immediately after adding another menu location (exactly as you instruct). I can’t leave it up because it prevents me from working on the site. Since we are in different time zones, let me know what would be a good time to leave my extra menu code in place so you can see.

You’re about 8 hours ahead of us, so it is getting be be late afternoon, early evening for you. Let me know if you can check the site now and I will add the extra menu code back in for you to inspect.

Thanks for continuing help with this. It’s important for my advertising efforts that I am able to add specific menus (one for each top level (main menu) category to help in my advertising campaigns so that when users browse to a category, they will get my menu for that category, which will include several subcategories. This also helps me focus my advertising for those categories.

2. While I’m writing this, I wanted to know if it is possible to specify categories for each ad location? What I am trying to do is show only certain ads for certain categories/pages. I am using a plugin that helps me do this per category for sidebar an shortcode ad locations (within content, in the footer, etc., but since Newspaper Ads are not category-specific, I’m trying to find a solution to be more specific which of my ads run in the Newspaper Ad locations on a per category basis.

Thanks.

Philip

Post count: 3343

Hi,

@betterretailing
if you modify the theme file, yes on each update you will need to pay attention of your custom modifications(to not loose your modified code, of course if in the update that file is modified)


@prose976
Do you have knowledge to make this? i can only point you in the right direction, but we can’t offer custom work, and you need to make that on AD to. That can be apply on ADS to using conditions like is_category(x) shot that AD, etc. I strongly recommend to hire a freelancer or someone to make the job done.

You can try here: http://studio.envato.com/

Thanks for understanding!

Post count: 156

Marius, don’t worry, I won’t be attempting to make any custom mods beyond my scope of ability. But I am still unable to add the menus as per your instructions without the site disappearing.

After adding an extra menu, the site (and admin) load as a blank page. It seems there may be an extra step somewhere in the code to “allow” the theme to accept extra menus because the menus are being added in wp-booster instead of where they would be added as per Codex.

Please work with me on this – it’s very important. I did as you instructed:

1. add new menu here: http://screencast.com/t/aH0khR6ul and you will have a new menu location: http://screencast.com/t/U2dqj0DF

2. use that menu on a category, like Fashion category change like here: http://screencast.com/t/Fl5833sW

Philip

Post count: 3343

Hi,
Do you mean when you add a new menu you got a blank page? Could be from memory limit, add this define('WP_MEMORY_LIMIT', '96M'); in wp-config.php file.

If this not work, please give me access to your WP and FTP access to test it myself. Send the details via email at contact@tagdiv.com

Thanks for the message!

Post count: 156

Thanks Marius,

I have checked my config file and it is set at 96M. For now, though, I will not be adding the other menus to the site.

In the future, if I attempt again, I’ll let you know if the same issues arise.

Philip

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