Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #731325

    Hi,

    I am just setting up a new site and I have configured the header to have the logo centre and the menu above. I would like to have a different coloured background for the menu section to the logo section and ideally want the logo area background colour to be semi transparent, is this possible? If so could someone help with any custom CSS I might need to add.

    Thanks
    Emma

    #731752

    In addition to above.

    So I have manged to figure out the CSS for the different colours having scoured the threads using google search but I still can’t seem to work out how to make the logo area semi transparent. Unfortunately as I want to have the menu above the logo section the transparent header option on the page is disabled. Please can someone help with this as I am losing the will to live!

    Thank you. :-)

    #732030

    Is there any particular reason why I’m not getting any response on this? Normally this forum is awesome and so quick to respond? I know I still have support as each new site I purchase a new license and I have only just brought a new one so I’m assuming it can’t be that. I could really use some help guys, please.

    Thanks
    Emma

    #732517

    Hi,

    Thank you for using Enfold and we would like to apologize for the late response.

    You can add the following css code to make the header or logo container transparent.

    .av-section-bottom-logo.header_color {
        background-color: rgba(255,255,255,0.5) !important;
    }

    And move the first section upwards or underneath the header with this one.

    .av-section-bottom-logo.header_color + div + .avia-section {
        margin-top: -135px;
    }

    Best regards,
    Ismael

    #732518

    Hi,

    UPDATE: Please use this for the transparent logo container.

    .av-section-bottom-logo.header_color .container {
        background-color: rgba(255,255,255,0.5) !important;
    }

    Best regards,
    Ismael

    #732878

    Hi Ismael,

    Thank you and don’t worry it was my own fault for commenting on my own post and confusing things.

    So I have applied the code and in principle it has worked, however it seems the semi-transparent section only shows up over the middle of the page despite the colour section image behind being stretched full width on my screen. I seem to remember that when transparent header option is available it is full width, is that right? To be honest it looks a bit weird and not as I would like, is there anyway of making the container full screen width?

    Thank you.

    p.s. Enfold rocks! It is the greatest theme ever! The support is great too. I don’t think there is anything you guys can’t fix.

    #733919

    Hi!

    Please add this css code to fix the width of the logo container.

    .av-section-bottom-logo.header_color .container, .av-section-bottom-logo.header_color .container .inner-container {
        width: 100% !important;
        max-width: 100%;
    }

    Regards,
    Ismael

    #734026

    Hi Ismael,

    Thanks for the additional code but I couldn’t see any difference? Is it just my end? Can you check it too? I have shown below all the custom CSS field just in case anything else in there is conflicting.

    .widgettitle { font-size: 20px!important; }

    div .copyright {
    width: auto!important;
    }

    .avia-button {
    font-size: 25px!important;
    }

    .av-section-bottom-logo.header_color .container {
    background-color: rgba(255,255,255,0.5) !important; }
    .av-section-bottom-logo.header_color + div + .avia-section {
    margin-top: -135px;

    .av-section-bottom-logo.header_color .container, .av-section-bottom-logo.header_color .container .inner-container {
    width: 100% !important;
    max-width: 100%;
    }

    @media only screen and (max-width: 767px) {
    .responsive .logo a {
    display: inline-block;
    vertical-align: middle;
    }

    .responsive .logo {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    }

    .logo img { max-height: 48px; }
    @media only screen and (max-width: 767px) {
    .responsive .logo a, .responsive .logo img {
    max-width: 80%;
    height: auto !important;
    margin-bottom: 15px;
    }}

    #734526

    Hey!

    There’s a missing closing curly brace.

    .av-section-bottom-logo.header_color + div + .avia-section {
    margin-top: -135px;
    
    .av-section-bottom-logo.header_color .container, .av-section-bottom-logo.header_color .container .inner-container {
    width: 100% !important;
    max-width: 100%;
    }
    

    ..should be:

    .av-section-bottom-logo.header_color + div + .avia-section {
    margin-top: -135px;
    }
    
    .av-section-bottom-logo.header_color .container, .av-section-bottom-logo.header_color .container .inner-container {
    width: 100% !important;
    max-width: 100%;
    }
    

    Best regards,
    Ismael

    #734648

    Ahh see I knew it would be something stupid.

    You sir, are a genius! Thank you. All working well on that part on desktop but on checking responsive it is still not full width? Any theories?

    Plus can I increase the padding above the logo as it looks a bit squashed at the top of the container?

    Also, sorry but while I’ve got your attention I’m going to make the most of your knowledge.

    On this site, I would like each of the colour sections to fill the screen so that the arrow to jump to next section is always placed at the bottom and it looks/works really sleek. Is this possible as when I selected the “100% of browser height” in the row settings it works fine for the first section but when it jumps to the second it shifts down the page and it looks rubbish. Am I doing something wrong or is there some way of doing this that you can advise?

    Thanks
    Emma

    p.s. can you think of any reason why the following code in quick css would knock out my advanced button styling not to work on desktop version? I have eliminated all other codes by removing and re-applying one-by-one and this is the one that affects it for some reason?

    p.p.s Any chance I could get an answer on this one soon? Sorry to pester as I know you are probably snowed under.

    @media only screen and (max-width: 767px) {
    .responsive .logo a {
    display: inline-block;
    vertical-align: middle;
    }

    • This reply was modified 7 years, 11 months ago by efletcher.
    #736189

    Hi,

    I’m sorry for the late response.

    Plus can I increase the padding above the logo as it looks a bit squashed at the top of the container?

    Please use this css code to move the logo downwards a bit.

    .logo img {
        top: 10px;
    }
    

    And you will actually get a faster response if you open a new ticket or topic for each of your inquiry. Other moderators will be able to check on it much faster.

    p.s. can you think of any reason why the following code in quick css

    What is the “advanced button styling”?

    On this site, I would like each of the colour sections to fill the screen so that the arrow to jump to next section is always placed at the bottom and it looks/works really sleek. Is this possible as when I selected the “100% of browser height” in the row settings it works fine for the first section…

    There’s quite a few css modifications added on the theme, specifically in the header so the “scrolldown” calculation is off. Please edit the js > avia.js file then look for the avia_smoothscroll function. Look for this code on line 756:

    fixedMainPadding = parseInt($('html').css('margin-top'),10);
    

    .. replace it with:

    fixedMainPadding = parseInt($('html').css('margin-top'),10) + 100;
    

    Let us know if it changes anything.

    Best regards,
    Ismael

    #736539

    Hi Ismael,

    Thank you again. The logo code worked fine, so long as I placed it at the top of the quick css field and also applied the !important part.

    However the other problem with the colour sections doesn’t seem to have resolved things. I edited the js file as suggested and refreshed and cleared cache etc. but it still has that section that gets cut off. Am I asking too much of the theme do you think?#

    As recommended I have also raised a new topic for the button styling. Thanks for the tip.

    Thanks
    Emma

    #736784

    Hey!

    However the other problem with the colour sections doesn’t seem to have resolved things

    If you don’t mind, please post the FTP details here so that we test the script further. I’m sure we could come up with a custom solution to the issue.

    Best regards,
    Ismael

    #737676

    Sorry please excuse my ignorance but what do you mean by FTP details? Do you want to login in to the wp admin dashboard to you mean?

    At present I only have access to the core wp admin files as the hosting is by another person and they installed wordpress on the subdomain we are using for development and granted us admin access.

    #739632

    Hi,

    ask your host about the FTP details and provide them to us when you’re ready.

    Best regards,
    Andy

    #740038

    Hi,

    This is what I have been provided as FTP login details for this subdomain.

    I hope it works but let me know if you have any problems.

    – 01/02/17 – update
    Is there any chance you guys could give me an update on your thoughts on this and whether the FTP login details worked okay? Thanks.

    • This reply was modified 7 years, 10 months ago by efletcher.
    #741580

    Hi!

    I’m sorry for the late response. We modified line 821 of the same file.

    target =  container_offset - fixedMainPadding + 150,
    

    Please remove browser cache before checking the page.

    Cheers!
    Ismael

    #741581

    Hey!

    Aside from this modification, you can also try this plugin.

    // https://wordpress.org/plugins/hash-link-scroll-offset/

    Regards,
    Ismael

    #742050

    The fix you did works perfectly fine for me. Thank you.

    #742110

    Hi,

    Glad it’s fixed :)

    Best regards,
    Nikko

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Header background different colours’ is closed to new replies.