Does it work with any theme – I use Enfold – if it works with that it’d be brilliant http://natureslens.co.uk/2014/05/tigers-of-bandhavgarh-in-2015/
Yes, it should work with any WordPress theme. The only exception is if a theme doesn’t use the WordPress menu system or doesn’t utilize the standard class names that WordPress outputs. I checked your theme and it will definitely work with this plugin.
Just to make sure I don’t misrepresent the functionality, the plugin handles menu highlighting based on the site’s URL structure. So, for the blog post you linked to in your comment, it wouldn’t automatically highlight the ‘Blog’ menu item since the two URLs have nothing in common. I have another plugin in the works that will allow you to highlight a menu item when you are on a specific post type, which would work best for this scenario.
However, if you are wanting your ‘Workshops & Tours’ link to highlight when the user is on this page (http://natureslens.co.uk/event/birds-of-prey-pro-workshop-sept-2014/), then the plugin would handle that automatically.
Yeah – I would like both scenarios to be covered – how long until the other plugin comes out so I can be fully covered – will likely buy a copy of this to cover off my ‘Workshops & Tours’ scenario
I hope to have the other plugin ready by early next week.
Just wanted to give you an update. I decided to include the additional menu highlighting functionality within this plugin rather than creating an additional plugin.
This means that you only have to make one purchase to resolve both of your use cases. Once the update is approved by CodeCanyon, a notification will be sent out to anyone who has purchased the product.
Great news – bought it on that basis – one little glitch – the green underline does not appear in the Enfold theme
Go here – http://natureslens.co.uk/events/ – the text ‘Workshops & Tours’ is emboldened & has a green underline
However, go to one of the events, http://natureslens.co.uk/event/tigers-bandhavgarh-india-workshop/ – the text ‘Workshops & Tours’ is emboldened & but has no green underline
Help to fix that is appreciated in advance
David, the reason you are getting the ‘Workshops & Tours’ menu item emboldened currently is because the event page you are on is actually in the submenu.
One minor detail that I didn’t notice previously. The URL path for the ‘Workshops & Tours’ link is /events/. However, the start of the URL path for an individual event is /event/. So, if you were to change the slug for the ‘Workshops & Tours’ page (assuming it is a page) to ‘event’, the menu highlighting would work automatically. Or, you could update the rewrite slug for the event post type to ‘events’, which would be my preference.
However, you didn’t purchase this plugin to have to make edits to your site… which is part of the reason I decided to add in the additional functionality I mentioned previously instead of creating a separate plugin. So, you can simply go to the menu edit screen in your WordPress admin, expand the ‘Workshops & Tours’ menu item and under the ‘Highlight if post type is’ section, check the ‘Event’ post type. This will ensure that, if there isn’t already a menu item selected when you are on an event, it will highlight the ‘Workshops & Tours’ link.
The same goes for highlighting the ‘Blog’ link in your main menu. Go to the menu edit screen in your WordPress admin, expand the ‘Blog’ menu item and under the ‘Highlight if post type is’ section, check the ‘Post’ post type.
If you aren’t sure what checkbox I’m referring to, here is a visual.
Wow – that rocks – I am not seeing those checkboxes – are we still waiting on an update to be made available via CC?
Sorry about the delay, I’ve been out of town. You aren’t seeing the checkboxes? Can you check the version number displayed on the plugins page (where you activate/deactivate the plugin)?
Showing as v 1.1
That should be correct. Version 1.1 is the version with the new functionality.
So just to be sure, the plugin was active when you checked and didn’t see the checkboxes, right?
If so and the problem still exists, can you install the Send System Info plugin and send the generated system info via the contact form on my profile page? This information will allow me to investigate potential plugin conflicts and other possible issues. Sending the information via my contact form will ensure that only I will see your system configuration.
Sure – or I can go one better and give you an admin login to my site to have a poke around
Can you change the color?
My plugin has nothing to do with the appearance of your menu items. It only ensures that the proper menu item is actually highlighted. The colors and styles used is entirely up to your theme.
Hi, I encounter a weird effect. When activating the plugin the menu item for the blog is highlighted correctly but when on a single post, another menu item is highlighted. Any idea?
I’d be glad to take a look. Can you point me to a few URLs on your site as examples?
Thanks, will send you the URL via contact form.
Could you already have a look?
Sorry, I don’t appear to have gotten a message from you via the contact form. Can you try again?
Just to be clear, the contact form is here: http://codecanyon.net/user/wpscholar?WT.ac=item_profile_text&WT.z_author=wpscholar
URL sent again!
By default, the plugin handles menu highlighting based off of your URL structure. The reason the ‘Blog’ link doesn’t highlight on a single blog post is because the single post doesn’t have the /blog path in the URL. This is typically the case with any WordPress blog that is not located on the homepage.
There are two ways to fix the issue:
1. Update your URL structure. You can add ’/blog’ to the beginning of your permalink structure.
2. When editing the ‘Blog’ menu item in the admin, check the ‘Post’ checkbox under ‘Highlight if Post Type is:’ section. (Example here: http://codecanyon.net/theme_previews/7751788-better-menu-highlighting-for-wordpress?index=2&url_name=better-menu-highlighting-for-wordpress)
I already had the menu item checked, before I asked. Unfortunately this doesn’t work.
Sorry, I just noticed something. What version of the plugin are you using?
I’m seeing that the first empty link, which in this case is your separator, is being marked as the active menu item. This is a bug that was addressed by the latest release. Can you delete your current copy of the plugin and reinstall after downloading the latest version?
I’m thinking that should fix the issue, but let me know if it doesn’t. Thanks!
I had 1.1 already but reinstalled latest version now. It still says 1.1
The problem is still there. Could it be, that it comes from having two empty links? I also wonder how to get the Blog item highlighted, when on a category page, as I have no menu item for categories.
I sent you a copy of 1.2 directly via email. Please validate if the new version works. If not, I’d be glad to take a closer look.
New version works! I answered via email and outlined remaining problems. Thanks so far for your support!
Excellent. I’m going to try again to get Code Canyon to update the plugin version. I’ve responded to your email and I’m thinking about how I could add support to the plugin for highlighting the main post type link when the user is on a category page.
Thanks for your help and the email. Will reply soon.
Hi, will this plugin work with “shopsy” wordpress theme? My site is based on shopsy wp theme: www.handcraftt.com
Yes. The Shopsy theme uses the built-in WordPress menu system, outputs the standard WordPress classes, and is therefore 100% compatible with this plugin.
So are you saying that if i create a custom post type the blog title will not highlight anymore like it use to annoyingly do?
Correct. Using the Better Menu Highlighting plugin, you will be able to configure a specific menu item to highlight when viewing one of your custom post type pages.
Thanks for solving this issue for me. I will buy it.
No problem. If you encounter any issues, just get in touch.
Thank Author, I’m Web developer. This plugin is great because it is compatible with theme use visual composer.Because I usually create menu link to page template design by visual composer and I want to highlight when I view single post or single page from this page template. Thanks again.Please continue to develop and update it
Thanks for the kind words! I’m definitely going to continue updates and support as long as people are interested.
Hello! Is there any way that it can be set for subsites off of a main site? We are using subsites for departments, and a network menu plugin (the main site menu is pulled to subsites) and it would be wonderful if the “Departments” tab would be highlighted when navigating within a department.
This plugin is smart enough, that it will automatically detect your URL structure and compare it to the URLs of your menu items. So, it should handle your scenario automatically as long as you network activate the plugin or run it as a must-use plugin. If you buy it and it doesn’t work, let me know and I’ll be sure to get it working.
It doesn’t work for that specific thing, but I don’t think that’s the fault of the plugin. I forgot that I’m using “page links to” with fake pages for each of the departments. Ex: in areas where we have a subsite at root/HR I have created a page at root/departments/HR and I’m using page-links-to on that page so that I can build the menu with pages rather than custom links all the time (easier). The plugin doesn’t pick this up. But the good news is that it did get rid of a good deal of other annoyances! I think it’s more the fault of page-links-to…I wish it would preserve the original permalink and just redirect, instead it changes the permalink.
Do you mind pointing me to your site? I’d like to see first-hand what you have set up.
Just as promised, it JUST WORKS. Thank you for your help!!! Excellent plugin, highly recommended. The code is so pretty my eyes tear up looking at it.
Haha! Glad to have someone truly appreciate the code.
is it still working ?
I do have an update I need to release, but the plugin does work and I am supporting it. The plugin should work with any theme that uses standard WordPress menus, so it should work with VideoPro as far as I can tell.
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
View license details
Get it now and save up to $5.50
This item is licensed 100% GPL.
Deliver better projects faster. Photos, templates & courses
Unlimited downloads. Only $29/month
Learn almost anything with
Envato Tuts+ for free
9000 free tutorials, 3000 paid courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work