Home › Forums › Lawzo Theme Support › nav item highlight for subpages
- This topic has 35 replies, 3 voices, and was last updated 7 years, 3 months ago by Sonl Sinha.
-
AuthorPosts
-
July 7, 2017 at 5:10 pm #77610
Using the lawzo theme I’d like to have the parent nav item to remain highlighted when visiting a sub page – for example when reading a blog entry (website.com/blog/entry1) I’d like to have the blog parent nav item (website.com/blog) to be highlighted so the visitor understands where the active page belongs to in the navigation.
Could you please provide me with the appropriate code?July 10, 2017 at 11:42 am #77827Hi,
Kindly go to Appearance>>Theme Options>>Basic Settings>>Custom CSS Box:
Add this code there:
#mainnav ul li:hover a { color:#336ba5 !important;} #mainnav ul li:hover ul li a { color:#fff !important;}
Regards,
ChrisJuly 10, 2017 at 3:42 pm #77860Hello Chris
thank you for your feedback. I added the css but unfortunately the code provided doesn’t seem to be working.
The webpage is [obscured] and if you click on a blog entry to view one of the entries the navigation item “Neuigkeiten” remains inactive.
Please be so kind and assist me further.Kind regards
FlorianJuly 11, 2017 at 12:27 pm #77946Hi,
It is only possible when you make a menu item child of a menu item like submenu. If you want Blog to be highlighted then you have to make Entry1 a submenu(child) item of Blog in primary menu.
Regards,
ChrisJuly 12, 2017 at 3:55 am #78015Does this mean that my client would have to manually add every new blog entry as a submenu?
Is there a way to create a submenu without the main menu bar showing the drop-down menu items and the drop-down arrow?
July 12, 2017 at 10:27 am #78070Hi,
If you want Blog to be highlighted while visiting blog posts kindly edit header.php file and paste below code just before
</head>
at the end.<?php if(is_single()) { ?> <style> .header .header-inner .nav ul li.menu-item-4690 a{background-color: #f5f5f5 !important; color: #0076d9 !important;} </style> <?php } ?>
Regards,
ChrisJuly 14, 2017 at 5:44 am #78271Hi Chris!
Thank you for your support. Your code worked perfectly.
Also I successfully hid the dropdown menus (.sub-menu {display: none !important;}) which I didn’t want to be displayed in the menu bar despite the navigation item to be highlighted.
For some reason the sub-menus still show up on the mobile and tablet version of the website. Now I would like to hide the downward facing arrow which indicates a dropdown menu and also hide the sub-menus on the mobile and tablet version.Can you please also help me with this?
July 14, 2017 at 6:49 am #78282Hi,
Kindly go to Appearance>>Theme Options>>Basic Settings>>Custom CSS Box:
Add this code there:
@media screen and (max-width:1023px) { .header .header-inner .nav ul li ul, .header .header-inner .nav ul li ul ul { display:none;} }
Regards,
ChrisJuly 14, 2017 at 7:27 pm #78352Hi Chris
thank you so much for your help! Now I only have one more problem I need help with:
If you check out my website and visit the “team” page (domain.at/team/) and then click on one of the team members the URL changes to “domain.at/neuigkeiten/team/team-member” (“neuigkeiten” being the blog page) instead of “domain.at/team/team-member”.
If you enter the “correct” url (domain.at/team/team-member) by hand then the page redirects to “domain.at/neuigkeiten/team/team-member” automatically.Do you have a solution for this behaviour?
July 18, 2017 at 7:08 am #78512Hi,
This can only be done via coder.
Kindly send us your WordPress admin details (Username & Password) via sktthemes.net/contact Please mention this forum URL while replying so that we understand what needs to be done.
Regards,
ChrisJuly 20, 2017 at 9:01 am #78800Hi,
This issue was resolved from our end. Kindly check and confirm.
Regards,
ChrisJuly 20, 2017 at 4:50 pm #78831Hi Chris
Now the domain.com/team shows an archive page including sidebar with all the team members and the “team” nav item is not highlighted.
When I visit domain.com I would like to show my custom team page at domain.com/team from where I link to the team member pages with the “team” nav being highlighted.Kind regards
FlorianJuly 21, 2017 at 6:14 am #78867Hi,
This issue was resolved from our end. Kindly check and confirm.
Regards,
ChrisJuly 22, 2017 at 6:26 am #79036Thank you for resolving this issue.
Can you please also provide me with the appropriate code to have the “blog” nav item (neuigkeiten in my case) highlighted when I view an archive or category page?Kind regards
FlorianJuly 22, 2017 at 7:30 am #79041Hi,
This issue was resolved from our end. Kindly check and confirm.
Regards,
Chris -
AuthorPosts
- You must be logged in to reply to this topic.