Need help with some CSS tweaks for menu appearance
claudiu
Registered Users Posts: 12 Big grins
Hello!
I'm trying to create a semi-transparent background for the submenu items (i.e. children under "PHOTO-ESSAYS") for both desktop/mobile.
I e-mailed this to the SmugMug Support Heroes, but they told me they are having troubles getting this to work, and they suggested me to ask this question here.
Could you please help me out with this?
Thank you very much indeed!
Claudiu
My website: falubphotography.com
I'm trying to create a semi-transparent background for the submenu items (i.e. children under "PHOTO-ESSAYS") for both desktop/mobile.
I e-mailed this to the SmugMug Support Heroes, but they told me they are having troubles getting this to work, and they suggested me to ask this question here.
Could you please help me out with this?
Thank you very much indeed!
Claudiu
My website: falubphotography.com
0
Comments
They are correct. This works on MY site using Chrome's web tools:
I tried it on your site and it doesn't work. Looks like you have some conflicting code on one of your CSS widgets here:
If you remove this, it should work if you add the code from the top code into your theme's site-wide CSS. If it doesn't work, please leave this removed:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I removed the code syntax you mentioned from the 'CSS placeholder', which I have inserted at the top of the page for the entire site, and I aded your code into my theme's site-wide CSS, but it doesn't work...
I tried also when the code in the 'CSS placeholder' is moved into my theme's site-wide CSS (i.e. I thought that having both a 'CSS placeholder' for the entire site and a theme's site-wide CSS creates some additional conflicts).
Unfortunately, this didn't work either. I assume there is some mistake in my code at a certain location, but I have no ideea where.
Should I send you my codes from the 'CSS placeholder' (located at the top of the "Entire Site" page) and my theme's site-wide CSS?
Thank you!
Claudiu
Claudiu Falub Photography | Facebook
No need to post your code here, I can see it using one of the web tools. I just uploaded the code into my theme's site-wide CSS and it works. There must be a conflict in your site....some place. I'll take a look again...
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Just had to add one more line. Just replace the one I posted and use 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
For your other question. Remove this:
Use this instead. Note, you don't need the
@media only screen and (max-width: 767px) { ...}
because it only works on mobile ayway.Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
It works now. I am still playing around with the parameters, but it's basically much, much better! I'm very happy!
I will test the code for mobile phones.
Thank you very much for your time and help!
Claudiu
Claudiu Falub Photography | Facebook
How do I remove the horizontal black line all across the page when the hamburger menu is not expanded?
Thank You!
Claudiu
Claudiu Falub Photography | Facebook
Change this:
To
transparent
orrgba( 0, 0, 0, 0 )
: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 very much!
Claudiu
Claudiu Falub Photography | Facebook
Mike, one last thing:
For desktop, I'm trying to make the navbar submenu item hover background semi-transparent as well (i.e. less transparent than the background of the whole block).
I tried:
.yui3-menu .yui3-menu-children .yui3-menu-item .yui3-menu-label:hover {
background: rgba( 0, 0, 0, .5 )
}
but it just lightens the gray...
Moreover, could you please tell me how to remove the line all around the semi-transparent background for the submenu?
Thanks a million!
Claudiu
Claudiu Falub Photography | Facebook
That was a tricky too. The first one removes the default hover. As you found out it just makes it darker or lighter. Using
transparent
removes it so you can target another class.Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Superb, Mike!
Thank You very much for your help! Your CSS codes above will be very helpful to other Smugmuggers as they were to me
Bests
Claudiu
Claudiu
Claudiu Falub Photography | Facebook
You're welcome. I may have to add this to my list of SM Customizations....since it took some time to figure out.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Mike, please do so. I looked at your website and besides the exquisite landscape photographs it also contains all kind of useful info (e.g. CSS tweaks, etc.).
I might ask you at some stage how to add the "home" symbol in the lower left corner (i.e. in the same block where the social icons are for the desktop site), with a link to the cover page, but I don't want to abuse your kindness too much
You have already helped me a lot with the above codes that provided the results I was looking for.
Again, thank You very much. This site is extremely efficient!
Claudiu
Claudiu Falub Photography | Facebook
I added a tutorial on the semi-transparent menu last night: https://gallery.imagesinthebackcountry.com/Smugmug-customization/Create-Semi-Transparent-Sub-Menu
Don't worry about abuse...lol! I don't have a lot to do, so I enjoy this....really. It gives me something to do.
Anyway, in your Social Icons you want to click on "Show Custom". That will allow you to add a custom URL, in this case it will be your home page. Fill in the URL and save. Add this to your CSS:
I tried it on my testing page and it works.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Mike, thanks very much, but for some reason it doesn't work on my page.
So, I got the "reading glasses" symbol that I had already managed to insert a few days ago at the Custom URL, but then I gave up.
So, with or without the code line placed in the 'CSS placeholder' and/or my theme's site-wide CSS I always get the reading glasses on the 2nd position... If possible I would like to have the "Home" symbol instead.
Btw, can one change the order of these symbols in that block?
Many thanks for your efforts and for placing the tutorial on the semi-transparent menu on your page!
Claudiu
Claudiu Falub Photography | Facebook
Forgot SM offers two versions; square and circle. I use square. I added the circle and default as well...
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Yes, it works! Thank You, Mike!
I looked again at your landscape photographs. I love the photograph with the lighting strikes. Amazing colors.
This one: https://gallery.imagesinthebackcountry.com/North-america/i-Tp6dgrF/A
Happy shooting wherever you are, and all the best!
Claudiu
Claudiu Falub Photography | Facebook
I updated the code above to include the default Social Icons. I checked and there is no way to re-arrange them unless you create a custom Social Icons (I do it to match my WordPress site).
Thanks for the compliment. We don't get that type of weather here so when I had an opportunity for some lightning strikes while on vacation, I took it. Got very wet doing so, but totally worth it!
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk