-
AuthorPosts
-
July 11, 2018 at 5:36 pm #984308
Hi,
I am in the process of adapting my menu.
What I would like to achieve is to have the “Logo center, Menu below”, combined with “Sticky Header” BUT the logo should disappear when scrolling down, leaving only the sticky menu bar (without logo).I tried already the following Quick CSS I found in the forum, but they didn’t work for me.
.header-scrolled #header_main > .container { display: none !important; }
.header-scrolled .av-logo-container { display: none; }
July 12, 2018 at 1:08 pm #984701Hey catchbudapest,
Thank you for using Enfold.
The css codes should have worked. Please provide the login details in the private field so that we can test it. Did you purge the cache or disable the theme’s Performance > css/js compression after adding the code?
Best regards,
IsmaelJuly 12, 2018 at 1:56 pm #984752Hi Ismael,
thanks for the quick reply.
Yes I purged the cache after adding the code.
Please find login data in private content.July 13, 2018 at 8:56 am #985037Hi catchbudapest,
Best regards,
VictoriaJuly 13, 2018 at 10:16 am #985082Hi,
Thanks for the update.
We’ve added these css codes on the Quick CSS field.
/* logo on scroll */ #top .logo { display: none; } #top .av_header_transparency .logo { display: block; }
Best regards,
IsmaelJuly 13, 2018 at 10:47 am #985100Hi,
@Victoria:sorry for the inconvenience, this stupid instagram plugin is always messing around, I renewed the access token, should be fine for a while.
(This error message is only visible if logged in.)
@Ismael: Thanks for the help!
But not yet 100% what I meant (it seems that I was not 100% accurate with my description).When scrolling down, not only the logo should disappear, but also ONLY the thin menu bar should remain (see screenshot), I want to keep as much screen for the content below.
( the social media icons could also be moved down to the menu bar, since there is enough available space).Is that possible?
- This reply was modified 6 years, 4 months ago by catchbudapest.
July 13, 2018 at 9:07 pm #985326Hi,
I just noted that for the blog posts the logo is not showing up at all, also when the page is scrolled completely up to the top (screenshot here).
Therefore I deactivated the sticky menu and removed the CSS-code for the moment.
But please feel free to activate it again and add CSS-code again for testing, etc.
Thanks again for your great support!July 15, 2018 at 7:14 pm #985708Hi,
Can we see your web site URL please?
Best regards,
BasilisJuly 15, 2018 at 8:30 pm #985741Hi Basilis,
Webpage-URL and loggin data are above in the private content of my second posting of this thread.
July 16, 2018 at 4:20 am #985823Hi,
I adjusted the css code a bit. I also disabled the Autoptimize and WP Super Cache plugin temporarily. Please enable the plugins back once you’ve check the modification.
Best regards,
IsmaelJuly 16, 2018 at 8:47 am #985860Thanks @Ismael,
that’s exactly what I was looking for!Is it possible the get the same effect in the blog-post-view as well?
For the blog-posts-pages the logo is not showing up at all , even when the site is scrolled to the very top, (e.g. see here).And would it be possible to get a thin border or even better a thin shadow below the menu bar as soon as the page is scrolled down? (the border/shadow should not be there when the logo is shown.)
A bit like it is done here.I activated Autoptimize and WP Super Cache again, but just deactivate them when you are testing.
July 16, 2018 at 9:05 am #985865Hi,
You can’t have the same effect on the single post page, unfortunately, but this css code should make the logo visible again.
#top.single .av-logo-container { display: block; }
Best regards,
IsmaelJuly 16, 2018 at 9:25 am #985870Oh, that’s a pity, that would have been perfect!
Do you have a suggestion how to get a thin border or even better a thin shadow below the menu bar as soon as the page is scrolled down? (the border/shadow should not be there when the logo is shown.)
A bit like it is done here.(in the single post page the border/shadow can be there all the time)
Best,
CatchBudapest- This reply was modified 6 years, 4 months ago by catchbudapest. Reason: correct link added
July 16, 2018 at 9:10 pm #986098Oh damn, I just realized that in my previous post I added the wrong link at the example for the border below the menu bar.
I actually wanted to link to this example.
(I corrected the link also in the post above).July 17, 2018 at 2:20 am #986176Hi,
This css code should add the header shadow or border.
#header { box-shadow: 1px 1px 3px #989898; } #header.av_header_transparency { box-shadow: none; }
Best regards,
IsmaelJuly 17, 2018 at 9:35 am #986313Thank you so much @Ismael!!
It’s exactly what I wanted to achieve!The only thing I am not yet 100% satisfied is the single post page, where the effect of ‘hiding the logo when scrolling’ doesn’t work.
Is it possible to shrink the header/logo at least a bit in the single post page? (in order to give the reader more space for the content/body)
I already tried the “Shrinking Header” setting in the theme-options –> “header behavior”; but it seems that it has no effect with the centered logo and current CSS-modifications/settings.July 18, 2018 at 2:49 am #986712Hi,
You can set the header not to stick on the single post pages.
@media only screen and (min-width: 768px) { .responsive.html_mobile_menu_tablet #top.single #wrap_all #header { position: relative; width: 100%; float: none; height: auto; margin: 0 !important; opacity: 1; min-height: 0; } }
Best regards,
IsmaelJuly 18, 2018 at 7:20 pm #987148@ismael: That’s a good idea! I will check that out next week and will report then (currently I am on a leave…)
July 19, 2018 at 12:40 pm #987359July 22, 2018 at 10:47 pm #988518Hi @ismael,
I am back and checked the CSS-code now; unfortunately the following points are not yet working properly:
1. The code to set the header not to stick on the single post pages causes a gap between menu and featured image.
(See screenshot here), therefore I removed it for now.
(but the effect of not to stick on the single post pages works fine :)2. On my tablet the logo background is black instead of white (see screenshot here). On my mobile it is still white as it is supposed to be.
3. On my tablet the search symbol is overlapping with the logo (see screenshot here).
July 23, 2018 at 3:06 am #988551Hi,
Adjust the css code to remove the space between the header and the main container.
@media only screen and (min-width: 768px) { .responsive.html_mobile_menu_tablet #top.single #wrap_all #header { position: relative; width: 100%; float: none; height: auto; margin: 0 !important; opacity: 1; min-height: 0; } .html_header_top.html_header_sticky #top.single #wrap_all #main { padding-top: 0; } }
Please open a new thread for additional inquiries.
Best regards,
IsmaelJuly 23, 2018 at 9:32 am #988616Thanks @ismael!!
The code to remove the space between the header and the main container worked!I will open a new thread for the rest.
- This reply was modified 6 years, 4 months ago by catchbudapest. Reason: small correction
July 23, 2018 at 6:15 pm #988806Hi catchbudapest,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
VictoriaJuly 24, 2018 at 11:07 am #989110Hi @ismael!
I found another issue. I have some pages with “Header visibility and transparency” setting on “No transparency”.
In this cases the Logo is not shown (only the menu), e.g. see here.
And on mobile devices there is no menu at all!!
How can we get back the logo (and the menu on mobiles) for theses cases/pages?
The same view as for the single post pages would be fine as well (logo on top of the menu but not sticky).- This reply was modified 6 years, 4 months ago by catchbudapest. Reason: sentence for mobile devices added
July 24, 2018 at 1:38 pm #989176Hi,
Did you add this css code?
#top .av-logo-container { display: none; }
Please remove it because it’s hiding the logo and the mobile menu.
Best regards,
IsmaelJuly 24, 2018 at 3:07 pm #989212Hi @ismael,
removing the code:
#top .av-logo-container { display: none; }
brings back the logo and the mobile menu for this pages, but it also removes the effect of hiding the logo when scrolling down.
So what I would like to achieve is to keep this effect, but bring back the logo on specific pages (where the “Header visibility and transparency” is set on “No transparency”.
I tried this code to address a certain page:
.page-id-7219 #top .av-logo-container { display: block; }
But it didn’t work.
Hope it is still clear what I am trying to achieve, I summarize:
- – Where possible I want to have the effect of hiding the logo when scrolling down .
- – On single post pages (where this effect is not possible) it is fine to have a non sticky header.
- – on pages where the “Header visibility and transparency” is set on “No transparency” (e.g. here, I would like to have effect of hiding the logo when scrolling down if possilbe. If not possible then I am fine with a non sticky header as for the single post pages.
Hope not too confusing :)
July 25, 2018 at 7:07 am #989507Hi,
Try this css code.
#top.page-id-7219 .av-logo-container { display: block; }
Best regards,
IsmaelJuly 25, 2018 at 9:23 am #989565Brilliant @ismael, that works!
The logo is back for the 2 relevant pages (page-id-7219 and page-id-7690).Would it also be possible to realize a non sticky header for these 2 pages (as we did it for the single post pages).
My current CSS-code for this matter looks like this:
#top .av-logo-container { display: none; } #top .av_header_transparency .av-logo-container { display: block; } #top.single .av-logo-container { display: block; } #top.page-id-7219 .av-logo-container { display: block; } #top.page-id-7690 .av-logo-container { display: block; } @media only screen and (min-width: 768px) { .responsive.html_mobile_menu_tablet #top.single #wrap_all #header { position: relative; width: 100%; float: none; height: auto; margin: 0 !important; opacity: 1; min-height: 0; } .html_header_top.html_header_sticky #top.single #wrap_all #main { padding-top: 0; } }
July 26, 2018 at 7:17 am #990078Hi,
Where are those pages again? I’m sorry but I don’t know their respective IDs. Please provide the actual links to these pages.
Best regards,
IsmaelJuly 26, 2018 at 9:43 am #990128Hi @Ismael,
here are the links to the 2 pages, for which I would like a non sticky header (as we did it for the single post pages):
https://www.catchbudapest.com/hungarian-histories-book/
https://www.catchbudapest.com/budapest-guidebook/ -
AuthorPosts
- You must be logged in to reply to this topic.