Viewing 30 posts - 1 through 30 (of 33 total)
  • Author
    Posts
  • #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;
    }
    #984701

    Hey 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,
    Ismael

    #984752

    Hi Ismael,

    thanks for the quick reply.

    Yes I purged the cache after adding the code.
    Please find login data in private content.

    #985037

    Hi catchbudapest,

    Best regards,
    Victoria

    #985082

    Hi,

    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,
    Ismael

    #985100

    Hi,


    @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 5 years, 11 months ago by catchbudapest.
    #985326

    Hi,
    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!

    #985708

    Hi,

    Can we see your web site URL please?

    Best regards,
    Basilis

    #985741

    Hi Basilis,

    Webpage-URL and loggin data are above in the private content of my second posting of this thread.

    #985823

    Hi,

    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,
    Ismael

    #985860

    Thanks @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.

    #985865

    Hi,

    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,
    Ismael

    #985870

    Oh, 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 5 years, 11 months ago by catchbudapest. Reason: correct link added
    #986098

    Oh 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).

    #986176

    Hi,

    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,
    Ismael

    #986313

    Thank 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.

    #986712

    Hi,

    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,
    Ismael

    #987148

    @ismael: That’s a good idea! I will check that out next week and will report then (currently I am on a leave…)

    #987359

    Hi,

    Alright. Let us know if it worked.

    Have a nice day! :)

    Best regards,
    Ismael

    #988518

    Hi @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).

    #988551

    Hi,

    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,
    Ismael

    #988616

    Thanks @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 5 years, 11 months ago by catchbudapest. Reason: small correction
    #988806

    Hi catchbudapest,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #989110

    Hi @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 5 years, 11 months ago by catchbudapest. Reason: sentence for mobile devices added
    #989176

    Hi,

    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,
    Ismael

    #989212

    Hi @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 :)

    #989507

    Hi,

    Try this css code.

    #top.page-id-7219 .av-logo-container {
        display: block;
    }

    Best regards,
    Ismael

    #989565

    Brilliant @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;
    }
    }
    #990078

    Hi,

    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,
    Ismael

    #990128

    Hi @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/

Viewing 30 posts - 1 through 30 (of 33 total)
  • You must be logged in to reply to this topic.