Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1294598

    I have ched all previous forum requests bot no one works for me.

    My issue is that i am using a vertical Logo when page is loaded. But if user is scrolling down and the header shrinks, a new horizontal logo should be placed. I already tried the solution in backend: options > Header > Transparency but this does not work.

    Any Idea?

    #1295075

    Hey Sebastian,

    Could you post a link to where we can see the problem you are having please?

    Best regards,
    Rikard

    #1295168

    OK, because the page is still in progress -> PM

    #1295675

    Hi xeovision,

    The reason it’s not working is the page also needs to be set to have a transparent header.
    You’ll need to edit the page, go to the Sidebar > Layout > Header visibility and transparency and set this to one of the Transparent Header options.
    Hope this helps.

    Best regards,
    Nikko

    #1295723

    Thx for the tip but this does not work as expected. I need e.g. logo vertical when starting page and switch to Logo 2 when scrolling. No one of the layouts can handle this…

    #1296048

    Hi xeovision,

    I see, then there’s no option for that but please try this CSS workaround (just replace https://mysite.com/wp-content/uploads/2021/03/logo_restaurant.png with the URL of the logo when the page is scrolled):

    #header.header-scrolled .logo img {
        opacity: 0;
        visibility: hidden;
    }
    
    #header.header-scrolled .logo a {
        background: url("https://mysite.com/wp-content/uploads/2021/03/logo_restaurant.png") center center no-repeat;
        background-size: auto 100%;
    }

    Hope this helps.

    Best regards,
    Nikko

    #1296049

    can i see your page – and the logo?

    #1296107

    Thanks,
    this was the wished solution: https://ibb.co/JvgBbRn
    I tried sebveral options and decided to “press” the complete logo into the header. this avoids less complexity.

    #1296150

    yes – thats what i like to see. This is a logo that could be easily created as svg ( vectorbased ) logo.
    You can move Groups in that svg separatly – and the trigger will be the class on header : header-scrolled.

    see here an example with your approximate logo ( man of tomorrow and avenir next ) and some changings on scrolled version.
    of course there is still some css code to be optimized – especially for the responsive case, but this is a possibility to change with one and the same logo portrait and landscape even animated.

    https://webers-testseite.de/g-parx/

    see here your logo : https://webers-testseite.de/g-parx-logo.svg

    look to the source code in your browser – you can see that i grouped the way we want to move parts of the logo:
    ( click to enlarge )

    #1296228

    if you are interested in that solution – just download the logo ( svg ) and we will find a satisfying solution.
    PS ( See mobile Solution aswell )
    If you will do that – it might be better either to have on the big logo a background behind the letters ( maybe semitransparent) – or to have a littel outline on the letters. Sometimes you got a light background – then the dark outline will be good to have – or you got a dark background- then the white letters have enought contrast.

    #1296231

    wow, this is an amzing solution, didn’t know thta such way is possible.
    The customer doesn’t want to invest more effort in this issue and he doesn’t want to change logo to horizontal so he accepted the current solution.
    So, i fine for me.

    But many thanks for your excellent work. Thats pretty cool.

    #1296237

    Ok –

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Change logo after scrolling’ is closed to new replies.