Viewing 30 posts - 1 through 30 (of 34 total)
  • Author
    Posts
  • #669520

    Hi,

    We would like to add a thin fullwidth bar with a specific color just below the header, between the logo and the slideshow.
    Below the logo (within the bar) we would like to add a slogan.

    These are the areas of both elements: http://dns.d.pr/14aM5/5qmcFNa7

    Is this possible / easy to do?

    Appreciate all your help.

    #669705

    Hey sitesme,

    Do you want it to go on one page only? If so I would try to simply use the builder to add it. Otherwise you could add it to a template and load that template for each new page you add.

    Best regards,
    Rikard

    #677468

    Hi Rikard,

    That worked and it is fine, however, we would like to make this bar sticky (as the menu). Is there a code I can give to that color section to make it sticky?

    Thank you

    #677471

    Please check the URL in private.

    We can not have the text 100% aligned with the logo as we would like to. Is it possible to move it like 1px to the left and 1px to the right? What is the code that I can use for this?

    Thank you

    #678915

    Hi,

    You can refer to this post – http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/ and add a widget area to your header and position is as needed using custom CSS. If you need help, please let us know after adding your content to header.

    Best regards,
    Yigit

    #678939

    Hi Yigit,

    Thanks for your contribution.

    Please look to the website (in Private).

    I simply want the blue bar below the header permanently fixed with 2 words below the logo (and centered with the logo).

    Many thanks.

    PS – If you have a chance to look into my other post here, I would be very grateful :)

    #678947

    Hey!

    Please add following code to Quick CSS

    #blue_section {
        position: fixed;
        width: 100%;
        top: 82px;
        z-index: 99;
    }

    Cheers!
    Yigit

    #678952

    Hi Yigit,

    This is the code I have now for the blue_section:

    div#blue_section {
    height: 32px;
    min-height: 32px;
    }
    
    #blue_section {
        position: fixed;
        width: 100%;
        top: 82px;
        z-index: 99;
    }

    But it messed up the bar a bit.

    #678958

    Hey!

    You can now remove that widget from header and blue bar should work fine :)

    Cheers!
    Yigit

    #678965

    Hi Yigit,

    Removed all code from the widget (functions, CSS and widget itself) but if I keep both code lines (the one I had and the one you gave me) the blue bar simply disappears.

    #679164

    Yigit,

    Did you fix this problem? I was checking it now and it seems solved?

    The only problem that remains is on mobile. The blue bar is “floating” about 80px from the top when the user scrolls down and the 2 words are not aligned with the logo. Is there any “easy” solution for this?

    Many thanks.

    #679185

    Hi!

    It must be caching related issue, glad it is solved now :)
    Please change the code to following one

    @media only screen and (min-width: 990px) {
    #blue_section {
        position: fixed;
        width: 100%;
        top: 82px;
        z-index: 99;
    }}

    Regards,
    Yigit

    #679278

    Hi Yigit,

    Unfortunately this didn’t produce any results. I’ve cleared Safari’s cache on my mobile to test it.

    Thanks

    #679379

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Yigit

    #679422

    Hi Yigit,

    Please check below.

    #679428

    Hey!

    Code i posted here – https://kriesi.at/support/topic/add-a-thin-bar-below-the-header/#post-678947 was still in Quick CSS. Please flush cache and review your website now

    Regards,
    Yigit

    #679432

    Great Yigit,

    The blue bar is now moving on mobile perfectly fine :)

    Only problem is with the text alignment. Is it possible to have it perfectly aligned with the logo? The text is centred on the “page” but should be centred with the logo width only.

    Thank you

    #679434

    Hi!

    You edited your text and chose not to center align the text. Please add following code to Quick CSS and that should solve the issue

    #blue_section .container {
        max-width: 1260px;
    }

    Cheers!
    Yigit

    #679438

    Not quite yet.

    Can you please check what I mean by centered with the logo in the screenshot in PVT?
    Should be the same for computer or mobile screens

    Many thanks

    #679474

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    
    
    #blue_section .container {
       padding-left: 70px!important;
    }
    
    

    Best regards,
    Vinay

    #679480

    Great Yigit,

    It is perfectly aligned with the logo when I change it to 100px, on computer screens.

    However, on mobile it is a bit to the right. Is there a way to create a rule to align it on mobile devices as well?
    Please check the sshots in PVT

    Many thanks

    #679876

    Hi!

    Please use the below code only for the mobile device

    @media only screen and (max-width:480px) {
      #blue_section .container {
       padding-left: 70px!important;
    }}

    Regards,
    Vinay

    #679877

    Hi Vinay,

    Unfortunately it didn’t produce any results.

    I even changed to 50px but didn’t move.

    #679976

    Hi,

    Please remove following code

    #blue_section .container {
        max-width: 1260px;
        padding-left: 100px!important;
    }

    and it should work fine :)

    Best regards,
    Yigit

    #679992

    Hi Yigit,

    If I remove that code it fixes on mobile but it damages the PC version (i.e. the text goes to the left on PC screens)

    This is the code I have now:

    @media only screen and (max-width:480px) {
      #blue_section .container {
       padding-left: 30px!important;
    }}
    
    #blue_section .container {
       padding-left: 120px!important;
    }
    #680764

    Hi,

    Please adjust the values using media queries for different screensizes. It does look totally fine on my laptop with the code i posted above.

    Best regards,
    Yigit

    #680803

    Hi Yigit,

    It does look perfectly fine on my laptop too but once I add the media queries, it messes up with the laptop as well.

    Something is not right…

    #680808

    Hey!

    Please try add code as following

    @media only screen and (max-width: 1024px) and (min-width: 990px) {
    #blue_section .container {
       padding-left: 90px!important;
    }}

    Above is an example code. I checked your custom CSS and there is no error in it so it should not cause any issues. Sorry but this thread got very confusing as what is working fine for me is not working fine for you and that happened a few times already. That is why i am suggesting you to adjust the values as needed :)

    Regards,
    Yigit

    #680819

    Ok, it works now but with a problem still…

    The full code I have for the blue_bar section is:

    div#blue_section {
    height: 32px;
    min-height: 32px;
    }
    
    #blue_section .container {
       padding-left: 120px!important;
    }
    
    @media only screen and (min-width: 990px) {
    #blue_section {
        position: fixed;
        width: 100%;
        top: 82px;
        z-index: 99;
    }}
    
    @media only screen and (max-width:480px) {
      #blue_section .container {
       padding-left: 70px!important;
    }}
    
    @media only screen and (max-width: 1024px) and (min-width: 990px) {
    #blue_section .container {
       padding-left: 0px!important;
    }}

    The new problem is when I rotate my mobile from portrait to landscape, it is no longer aligned with the logo in landscape…
    But I guess this will be impossible to fix as there are so many screen size combinations? Please confirm.

    #680834

    Hey!

    Can you please post a screenshot of the issue so we can make sure that we are seeing the same thing? :)

    Best regards,
    Yigit

Viewing 30 posts - 1 through 30 (of 34 total)
  • The topic ‘Add a thin bar below the header’ is closed to new replies.