Tagged: 

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

    Hello support,

    I was trying to put in a widget that allowed 2 logos in my header, and tried following former topic solutions in here. My problem is that inside my widgets, no header was available.

    Can you walk me through what I should do from here both with the widget and adding an additional logo?

    I can also add CSS instead if it’s easier…?

    #1329110

    Hi Rolf,

    I’m not sure exactly what you are looking to achieve, but you can follow this in order to add a widget area to the header of your site: https://kriesi.at/documentation/enfold/header/#adding-a-header-widget-area. Once you have added the content, then we can help you out with styling.

    Best regards,
    Rikard

    #1330185

    Hi again Rikard,

    thanks a lot for the help.

    I’ve now added the logo to the header, but the logo is misplaced and underneath the other logo instead of right of it.

    1. How do I move it to that position and reduce it size?

    2. I’ve put in a third logo in the header as well (we have 3 companies). It’s placed in the middle of the page now… I need to move the up to the header right of the 2nd logo.

    3. How do I ensure that the added logos are responsive, so they don’t fly around on the mobile version?

    Kind regards,
    Rolf

    • This reply was modified 2 years, 12 months ago by AuroraArcus.
    #1330239

    Hi Rolf,

    Thanks for the update. Please try this in Quick CSS to position the widget to the right of your default logo:

    #media_image-2 {
        position: absolute;
        left: 220px;
        top: -50px;
    }
    
    #media_image-2 img {
        max-width: 40%;
    }

    I see that the image has a lot of white space, so you might want to crop it, then upload it again. You will likely have to adjust the values in the CSS I sent a bit after that as well.

    Best regards,
    Rikard

    #1330266

    Hi again Rikard,

    thanks for the that.

    I implemented the code and it works really well. Thank you!

    Is the a CSS code to control the height and width dimensions of the logos itself that you could provide?

    Have a good day:)
    Rolf

    #1330308

    Hi,

    Thanks for the update. This part of the CSS I sent should control the maximum width of the images/logos:

    #media_image-2 img {
        max-width: 40%;
    }

    If you need more specific CSS, then please try to explain a bit further what you are trying to achieve.

    Best regards,
    Rikard

    #1330899

    Hi again Rikard,

    on mobile version the logos are behaving a bit naughty:)

    While in landscape position it works, but if you don’t tilt the mobile (just hold it upright):

    1. the main logo is too big
    2. the 2nd logo is halfway out of the top of the screen
    3. the third logo is gone.

    Can you help me solve all those 3?

    #1330936

    Hi,

    It might be better if you hide the header widget for mobile, then add this in function.php to inject your images under the header:

    function add_after_main_container() {
      ?>
      <div id="mobile-logos">
        <img src="https://nordicanalytics.dk/wp-content/uploads/2021/11/115-180x180.png">
        <img src="https://nordicanalytics.dk/wp-content/uploads/2021/11/b667e25c660d49b8be3cf163c65cfe1e-180x180.png">
      </div>
      <?php
    }
    add_action('ava_after_main_container', 'add_after_main_container');

    Then add this in Quick CSS to hide/show the correct images:

    @media only screen and (max-width: 990px) {
    #media_image-2 {
      display: none; 
    }
    }
    
    @media only screen and (min-width: 991px) {
    div#mobile-logos {
      display: none;
    }
    }

    Best regards,
    Rikard

    #1331041

    Hi again Rikard,

    How do I hide the header on mobile?

    I can have the two logos displayed, but how do I add my main logo? I need all 3 of them…

    How do I control the size of each of them and how do I link the pages to each of them?

    Kind regards,
    Rolf

    #1331115

    Hi,

    Thank you for the update.

    You can add the main logo in the Enfold > Theme Options panel. The code that we provided above should add the other two inside the main header. You can add the link tag to add the links and use the css code that we suggested above to control the size of the images.

    Best regards,
    Ismael

    #1331869

    Hi again,

    thanks for the answer, but it doesn’t seem like my questions are being answered.

    1. How do I hide the header widget for mobile?

    2. You tell me how to add the main logo to the header, but won’t that disappear if I remove the main header on mobile?

    Kind regards,
    Rolf

    #1331916

    Hi,

    1. Please try this in Quick CSS:

    @media only screen and (max-width: 767px) {
    #media_image-2 {
      display: none;
    }
    }

    2. The code above will hide the widget with the image on mobile, not your main header.

    Best regards,
    Rikard

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