Tagged: Responsive menu
- This topic has 7 replies, 2 voices, and was last updated 11 years, 7 months ago by Sakin.
-
AuthorPosts
-
March 22, 2013 at 10:47 am #5630RobertfParticipant
Hi, I know there is a problem with tinynav when displaying search results, it displays the last menu item as the currently selected item, regardless of what was selected before the search. My testing found that this was also the case when clicking on a blog category or tag to display a list of blog entries with the same category/tag.
I could live with this (just), but today I found that when you select a blog post the same thing happens, the last menu item is displayed and not the true currently selected item. I thought it might be my template, but I tested it on your demo website with the same result.
Note, the problem does not occur with pages, only posts.
Is this something that can be fixed? Otherwise it will be show stopper for me as the main purpose of the website is to display blog posts and I can’t have it displaying the wrong menu item with the posts.
Regards, Robertf
March 22, 2013 at 12:39 pm #5633RobertfParticipantSakin, An update for you on some testing I’ve done that hopefully will point you towards a solution to this problem.
I downloaded the TinyNav plugin from WordPress (http://wordpress.org/extend/plugins/tinynav), activated it and found that it doesn’t have the problem that exist with the version in Catch Box Pro.
It did display 2 responsive menus, one’s obviously is the Catch Box Pro menu, the other the TinyNav plug-in. I didn’t bother working out how to stop the double-up display, I just wanted to see what would happen when I selected a post, or clicked on a tag/category, or did a search.
The results were perfect for all cases. The active/selected item in the menu displayed as Home for posts or the associated sub-menu item for pages.
The interesting thing, is that it worked perfectly for both menus, the TinyNav plug-in AND the Catch Box Pro menu.
Now, I’m not a coder, but it suggests to me that there’s something in the TinyNav plug-in library that does the “right” thing when working out the active/selected menu item, whereas the code is not right in the Catch Box Pro responsive menu.
By the way, I tested deactivating the TinyNav plug-in and the original problem came back.
I hope this is helpful. I know there’s a lot of information to take in – please let me know if you need any further explanation.
Regards, Robertf
March 23, 2013 at 1:03 am #5681SakinKeymaster@Robertf: See this the category work fine in our demo page http://catchthemes.com
/theme-instructions/simple-catch-pro/How did you add in the category in your menu?
March 23, 2013 at 3:30 am #5715RobertfParticipantHi Sakin,
The demo link displays “Login” as the selected/active menu item, which is the last menu item in the list. And if you select an item, like Home, and then search for something, like “Catch Box Pro”, it again displays “Login”.
This is exactly what happens in my case and, where my real problem is, if you select a post from the front/home page listing of recent posts.
But this stopped happening when I installed and activated the TinyNav plug-in. So again, my thoughts are that it’s doing something different with it tinynav.js library routines and if you can work out what it is or perhaps download the latests libraries from tinynav.js then this may resolve our problem with the Catch Box Pro menu.
Regards, Robertf
March 25, 2013 at 9:04 pm #5796SakinKeymasterHi Robertf,
We will be looking to solve this issues. But most of the theme have same issue. For plugin there is different criteria.
Regards,
SakinMarch 26, 2013 at 5:52 pm #5886RobertfParticipantI take your point, Sakin, your themes offer more functionality than a plug-in, but the responsive menu part of your themes is a very important feature. Somehow the tinynav plug-in manages to get it to work, with no surprises for the active menu selection when you do searches, or select blog tags/categories, or select the blog post itself. Perhaps I’m being niaive, but if it can do it, using tinynav.js, I’d expect theme can do it, too.
Thanks for your help to date.
Regards, Robertf
April 17, 2013 at 6:09 am #7159RobertfParticipantHi again Sakin,
I’ve been side tracked but have finally got back to my blog site and have spent the past couple of days trying to resolve the problem of TinyNav displaying the last menu item as the current-menu-item.
As you said, other themes have this problem. I found a suggested solution here:
http://themeid.com/help/discussion/4566/tinynav-displays-last-menu-item-and-no-dropdown-icon/p1
http://themeid.com/help/discussion/4351/tinynav-current-items-for-categories/
I used the code from 2nd link to modify catchbox-menu.min as follows:
jQuery(function(){ jQuery(“#access .menu”).tinyNav({active:”current-menu-item”, header:” “})})
The result is a far more workable option for me, where “Navigation” is displayed in the responsive menu, from which you can make your menu selection. I would prefer something more user friendly than “Navigation”, but it is better than the wrong current-menu-item being displayed.
I will post a link to my blog site … when I finally finish it!
Regards, Robertf
April 18, 2013 at 9:26 am #7234 -
AuthorPosts
- The topic ‘Responsive Menu for blog posts’ is closed to new replies.