Hello,
I am trying to theme using Genesis and I am having an issue that I cannot seem to figure out. I finally figured out how to modify the Primary Menu in both color and alignment, but when I do exactly the same thing to the related sections for Secondary Menu (in navigation.css), the secondary links recolor, but their alignment stays the same.
I left all code as it is by default and simply uncommented the alignment comments around the float:right element (as instructed in the comments), and it didn't work. So, I recommented it and uncommented the center one. It still aligns left. I have verified that it is stock code... unmodified other than the hex color of the links. The alignment refuses to change.
Any suggestions? Thanks in advance.
Paul
Comments
Comment #1
palminas CreditAttribution: palminas commentedI discovered the problem. The naming conventions in navigation.css are not consistent, which I figured they should be, and fixing them to be consistent fixed the problem.
In the primary menu section of navigation.css of a SUBTHEME we are given these:
"
/* FLOAT RIGHT */
/* #main-menu-wrapper .main-menu-inner {float: right;} */
/* ALIGN CENTER */
/* #main-menu-wrapper .main-menu-inner {display: table; margin: 0 auto; text-align: center;} */
"
Notice it is #main-menu-wrapper and .main-menu-inner
In the secondary menu section of navigation.css of the same SUBTHEME we are given these:
"
/* FLOAT RIGHT */
/* #secondary .secondary-inner {float: right;} */
/* ALIGN CENTER */
/* #secondary .secondary-inner {display: table; margin: 0 auto; text-align: center;} */
"
Notice the -menu-wrapper and -menu (respectively) are missing.
Uncommenting these made no difference. Only when I changed them to the conventions of the primary menu, like:
"
/* FLOAT RIGHT */
/* #secondary-menu-wrapper .secondary-menu-inner {float: right;} */
/* ALIGN CENTER */
/* #secondary-menu-wrapper .secondary-menu-inner {display: table; margin: 0 auto; text-align: center;} */
"
and then (obviously) uncommenting one of them, was there the intended difference.
I figured I'd post back in case this was an unintentional coding error.
Thanks for an otherwise nice base theme.
Have a good day.
Paul