- This topic has 12 replies, 2 voices, and was last updated 8 years, 6 months ago by Ziad.
-
AuthorPosts
-
September 30, 2015 at 1:27 pm #141024Ziad
Hello,
Not sure if this is a GeneratePress theme problem:
I am using GeneratePress with the add-ons. My main menu consists of Pages and one Custom Link. Whenever I select the Custom Link menu item, it is (usually) highlighted (as expected), but the item to its right is also highlighted! It is also erratic in that sometimes when I select the Custom link, it doesn’t get highlighted at all. Is this a GeneratePress issue? Please advise. Thanks.To see for yourself:
– Go to http://www.tlacnc.org
– Click on the “Events” menu item. This is the Custom link item. When you press it, the menu item to its right (“News”) will also be selected.
– You can try other combinations and you’ll see that the problem seems to reside in the Custom menu itemThanks,
Ziad
September 30, 2015 at 3:19 pm #141057bdbrownHi Ziad. Did you create a page for Events and add the custom link to the menu manually, pointing to that page? Or did you use the Events option in the menu items selection?
September 30, 2015 at 4:11 pm #141074ZiadI added the Custom Link to the menu manually (to a page created by “The Events Calendar” plug-in),
Ziad
September 30, 2015 at 6:38 pm #141083bdbrownI found a couple of reports online of the same behavior you are seeing. The Events menu link is somehow being seen by WP as a child of the blog page, which is what your News page is. One remedy was to remove the manually-created Custom Link (i.e., you selected “Custom Links” in the menu dropdowns, entered the URL and Link text) and replace it with the Events dropdown “Events” option, which basically creates the same type of Custom Link. Not sure why it would make a difference but one user said that fixed it. The other “fixes” involved css.
October 1, 2015 at 6:21 am #141156ZiadTried that, unfortunately same problem.
What are the css fixes?Ziad
October 1, 2015 at 2:36 pm #141262bdbrownGive this css a try:
/* on Events-generated page reset News menu item */ body.tribe-events-style-theme .main-nav .current_page_parent > a { color: #fff !important; background-color: #004000 !important; } body.tribe-events-style-theme .main-nav .current_page_parent > a:hover { color: #000 !important; background-color: #fff !important; }
Here’s a reference:
https://wordpress.org/support/topic/highlight-wrong-menu-item-when-activeAdding CSS: https://generatepress.com/knowledgebase/adding-css/
October 1, 2015 at 4:22 pm #141276ZiadExcuse my ignorance bdbrown, but in which CSS do I add it?
Thanks,
Ziad
October 1, 2015 at 4:38 pm #141277bdbrownNo problem. Several options for adding custom css described here:
Adding CSS: https://generatepress.com/knowledgebase/adding-css/There is a link to the GP child theme on the Download line here:
https://generatepress.com/knowledgebase/child-theme-working/October 2, 2015 at 6:41 am #141459ZiadThanks bdbrown, adding the code you sent me worked!
Interestingly, when I tried to do it using the Child theme (I downloaded the empty one provided by GP), when I activated the child theme it totally messed up my site! My home page’s header/background image’s size became much bigger and my widgets’ positions became all messed up.
I re-activated GP Premium and used option 2 (jetpack CSS edit),Ziad
October 2, 2015 at 9:05 am #141484bdbrownGlad the code worked for you. That’s a bit strange with the child theme. Just activating the blank child theme shouldn’t have any effect on your site. Did you make any other changes (activate/deactivate plugins, etc.) at the same time?
October 2, 2015 at 9:24 am #141489ZiadNone whatsoever!
As a clue maybe, the header background image became much longer, and a couple of widgets were displayed in it to the right,Ziad
October 2, 2015 at 10:54 am #141505bdbrownYes, the widgets are “theme” specific because of the different sidebar/widget IDs assigned by individual themes. Since WP sees the child theme as a separate theme, you may need to adjust, or even re-add, the widgets. If the widgets that changed were in the header then their positioning may have affected the background image placement/size as well. My apologies for not catching that.
October 2, 2015 at 1:06 pm #141524ZiadI’ll give it another try, thanks!
Ziad
-
AuthorPosts
- You must be logged in to reply to this topic.