Frugalmeister
Forum Replies Created
-
Is there a way to trigger a primary menu item highlight via code?
This is what I’m thinking. Depending on which primary menu item is selected, a unique secondary menu is loaded on the page. This is working perfectly at the moment. I want to make it so that if a specific secondary menu is loaded, the correct primary menu item is highlighted.
Could someone help me with this?
Thanks.
Frugalmeister
I appreciate your help guys.
Another example, maybe a more clear one, is the “News” category, a primary menu item which only links to categories within the “News” category:
http://gangapremhospice.org/wordpress/category/news/
Frugalmeister
Am I looking for a class assigned to the categories located in the secondary menu?
Frugalmeister
Does that mean it can’t be done? I’m a bit of a noob but trying to learn as I go.
Frugalmeister
Wow, that works great for pages!
Can we also get it to work for categories? The menu items in the secondary menu are a mix of pages and category pages.
For instance, if you click on the “Fundraising” menu item in the secondary menu of the page I linked, the corresponding primary menu item isn’t highlighted.
Thank you!
Frugalmeister
Sorry about that. Forget to set it to public. Visible now.
Frugalmeister
So you want to decrease the size of a margin, not increase it?
I’m looking at your homepage now but don’t understand which margin you’re referring to. Is it the space above your menu? If not please specify.
The following code is from the parent theme. As you can see all of those margins seem to be set to 0px.
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { border: 0; font-family: inherit; font-size: 100%; font-style: inherit; font-weight: inherit; margin: 0; outline: 0; padding: 0; vertical-align: baseline; }Frugalmeister
What would you like to achieve with that, Niki?
Frugalmeister
Wow, thanks!
I didn’t know I needed to specify that. If I run into any more problems I’ll be sure to check the parent theme’s stylesheet first.
Topic resolved.
Frugalmeister
Thanks Stephen.
I was trying not to divulge the page, but oh well:
http://gangapremhospice.org/wordpress/
Frugalmeister