Change Color of Drop Down Menu and Its Text Color
arcentoni
Registered Users Posts: 28 Big grins
Trying to figure out how to change the color of my homepage's dropdown menu to match the dropdown menus on the rest of my site. Seems like since my homepage is set to a dark theme, it defaults to a dark dropdown. The rest of the site is a lighter theme with white dropdown menus. Any idea how to code for this? Been searching around with no luck. Any help would be greatly appreciated. Thanks in advance.
View here:
https://adriancentoni.smugmug.com/
View here:
https://adriancentoni.smugmug.com/
Tagged:
0
Comments
Why can't you use the same theme on your home page? You just need to change your homepage's theme to the same theme from the rest of your site.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Add a CSS block to your home page and add this:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Your home page theme uses "Roboto" and the rest of your site uses "Lato".
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Oh snap! Completely missed that the homepage body font was still set to default Roboto. Thank you so much!
Let's say I wanted to experiment with making my white dropdown menus somewhat transparent, with no border, site wide. How could I go about that without negating the other code? I tried adjusting myself, but no luck.
Add this to your Theme's Site-wide CSS Section. If you don't know how, read my "Adding CSS to your Site" in my signature below.
The
background: rgba( 255, 255, 255, .2
will put a light (white255,255,255
) 20% (.2
) on your dropdowns, site wide. As long as you keep the other code you put in your Home Page, your Home Page will not change.Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Should add, that you can change the opacity for your somewhat transparent dropdowns (
0
) to solid (1
) and anything in between.Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thank you endlessly @Hikin' Mike