@enderSFTD
I think you can do this in at least 2 ways:
First way:
Your main menu (what you call Left menu and is in bold) is the top most level of your menu and so create an
&outerTpl template chunk for it. In your WF call, also
add an
&outerClass. This is the class for the
&outerTpl
e.g.
&outerTpl=`menuOuter` &outerClass=`mainmenu`
In your CSS, make sure you have a class called
mainmenu which you will style with the bold, etc. This will style the main menu (what you call Left menu). This
mainmenu class will be applied to the
<ul> tags of this outer part of the menu, like so:
With this, in your CSS you can target the
<li> that appear within that outer
<ul>, i.e. the appliances, entertainment, etc like so....
ul.mainmenu li {your css rules}
ul.mainmenu li a {your css rules}
For your sub-menu you need to create the WF template
&innerTpl. This is for sub-menus. The corresponding class is
&innerClass. If you want you can also use
&rowClass but this may be unnecessary since this will apply classes to all the rows in your menu. OK, back to the sub-menus...
Add the
&innerTpl and
&innerClass to your wayfinder call (the same call, not a different one)...e.g.
&innerTpl=`menuInner` &outerClass=`submenu`
Again in your CSS, make sure you have a class called
submenu which you will style as you wish. This will style the sub-menu. The
submenu class will be applied to the
<ul> tags of your sub-menus like so:
With this, in your CSS you can target the
<li> that appear within those sub-menu/inner
<ul>
ul.submenu li {your css rules}
ul.submenu li a {your css rules}
Second way - styling nested ul li tags:
If you only use the
&outerTpl and the
&outerClass you will still be able to target the sub-menus for different styling using CSS like so
ul.mainmenu li ul li {}
ul.mainmenu li ul li a {}
The above first line of CSS code will target the
<li> that are in the
<ul> that are in the
<li> that are in the
<ul> that has the class
mainmenu
The second one goes further and targets the
a (links) that are in the.....etc etc...like above
I hope this is clear....and there’s probably a better/alternative answer and CSS code
Cheers/k