Code Snippet: How to change the current menu item link colour in Divi’s sidebar module

Feb 24, 2018

Buy Liquid Tramadol

http://citydebate.com/?p=2393 Disclaimer: This site is a labour of love, but love doesn’t buy me matcha lattes. Affiliate commissions for awesome internet tools, on the other hand, totally buys me matcha lattes. This post probably contains some affiliate links. Read my affiliate disclaimer here.

Buy Clonazepam 1Mg

https://apsonlineacademy.org/high-school-3/ https://pindercooling.com/ev71ipda Update 9/18/2020: This may or may not be relevant anymore. Divi has gone through substantial upgrades since I wrote this post. I am in the middle of building out a membership site for a client, and I’ll be testing to see if this is still relevant. Once I know, I’ll come back and update this post.

https://arjunbasu.com/archives/tourism-montreal I love me some online courses and memberships, and I love me some Divi*.

https://castrillotejeriego.com/?p3p=1ffu81op But I have hated creating them in Divi because of one small issue:

Get Clonazepam Online

https://apsonlineacademy.org/homework-dangerous/ The navigation.

The course navigation inside a paid membership Divi site is annoying as fuck. You can use the Conditional Menus plugin to make the menu change based on someone’s status on the site, but it doesn’t help for the lesson navigation when people need to see where they are so they can better navigate to where they want to go.

https://reservarvuelos.com/registrarse/facturacion-de-qantas-airways/

https://momentumptmt.com/contact-us/ This has been, in my experience, the biggest roadblock when it comes to using Divi to build a course website. But — to be perfectly honest — when I’ve been building out my own course websites, I’ve found other solutions.

https://starpharmaceuticals.net/qdh234u The other day I built a course site for my client Peter Shankman and his course Faster Than Normal, and I was faced yet again with this problem. But like most things with web design, the solution is just a simple bit of code.

Order Cheap Tramadol

Buy Tramadol Tablet Here’s the solution in action.

https://scmlclub.com/events/2021-06-13/
Define Menu Item Colour in Divi's Sidebar Module

Order Tramadol 200Mg Online Normally under navigation where you see the lesson “1/4 Goal Orientation” in purple, it would be the same colour as the rest of the menu so the student wouldn’t know where they are or what lesson they’re on within the navigation.

Tramadol 50 Mg Price Your first step is to define the sidebar area for the sidebar module. You do this in your WordPress Dashboard then navigate to Appearance > Widgets

https://starpharmaceuticals.net/aj06ene6

https://arjunbasu.com/archives/t-4177 Make a new widget area and name it something easy to remember. Like “Divi Sidebar.”

Buy Ultram Online Without Prescription

Into this widget area drag the menu you want to display within the sidebar area.

Then go into Divi Theme Options and paste this code:

https://blanchardcollective.com/?p=gtmjhci2 #menu-divi-sidebar li.current-menu-item a { color: #362b73; }
#menu-divi-sidebar li.current-menu-item {font-weight: bold; }

Buy Ultram Generic Tramadol

You don’t have to name it “Divi Sidebar” but whatever you do name it, remember if you’re using a space in the name, you must use a hyphen in the code instead of a space.

https://apsonlineacademy.org/homework-dangerous/

This code snippet changes the colour and the font weight of the current menu item. Adjust your colour by changing out the HEX code, and you’re good to go!

https://spinwheelsresults.org/8q6kdo4b Let me know in the comments if you use this code snippet. I’d love to see it in action!

8 Comments

  1. JT

    Buy 100Mg Tramadol Hey Ysmay,

    The issue that I am having is that i’m using the Sidebar Module inside a page and the font colour set for that has an !important in it, so it does not allow me to set my own custom hex for this class.

    Thanks

    Reply
  2. Adam

    This did not work for me

    Reply
  3. Jason

    Great pro tip, thank you!! I had a plugin conflict WP Fastest Cache. disabled the plugin and this worked perfectly. Thanks!!

    Reply

Leave a Reply