cbisu2
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Understanding Side MenuSweet. I appreciate the help!
Forum: Fixing WordPress
In reply to: Understanding Side MenuGotcha, the theme is custom built from some other design company. It looks like it was based on Twenty Twelve.
Forum: Themes and Templates
In reply to: change the css class being used in my headerThat all makes sense. Thank you so much for your help!!
Forum: Themes and Templates
In reply to: change the css class being used in my headerHmm, that totally makes sense. I’ll also look into walker class and jQuery.
So, just because I am trying to learn, is there no easier way to just get a new class into that html in order to reference a specific class? There has to be somewhere in the php files, right? Let’s say I decided I wanted one of the tabs to have a red font and all the others black, wouldnt there be a simple way to just add or remove classes to make it happen? I mean, if I am going to just override a class wouldnt it make sense to just remove it from that section of html all together for cleaner mark-up?
I know these are beginner questions, but I dont have a ton of experience. We typically get freelancers for dev work and I am trying to add some extra value to my team so we dont have to run and hire a freelancer every time we need a little fix like this. Plus, its always nice to learn more.
Forum: Themes and Templates
In reply to: change the css class being used in my headerThanks for the feedback! So I went ahead and just made the change in the child theme. My main concern was that the class was being used elsewhere (although I doubt it), so I didn’t want to change it.
At this point this has become more of a personal vendetta about doing it the right way and learning more than anything else.
I’ve been doing research throughout the day and the class was current_page_parent and it seems that there are lots of people who have had issues with this class with no clear fixes.
We have multiple tabs and for whatever reason it is only being applied to this one particular tab for “news.”
For example, the list item for the “FAQ” tab is rendered like this:
<li id="menu-item-47" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-9 current_page_item menu-item-47"></li>While the “news” tab has this applied:
<li id="menu-item-370" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-37 current_page_item current_page_parent menu-item-370"></li>Obviously the only difference is that one class – current_page_parent. Isn’t there an easy way to add and remove classes?