Tagged: 2 logos
-
AuthorPosts
-
November 15, 2021 at 3:24 pm #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…?
November 15, 2021 at 3:45 pm #1329110Hi 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,
RikardNovember 23, 2021 at 10:07 pm #1330185Hi 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.
November 24, 2021 at 5:09 am #1330239Hi 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,
RikardNovember 24, 2021 at 9:33 am #1330266Hi 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:)
RolfNovember 24, 2021 at 2:26 pm #1330308Hi,
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,
RikardNovember 29, 2021 at 11:36 pm #1330899Hi 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?
November 30, 2021 at 7:24 am #1330936Hi,
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,
RikardNovember 30, 2021 at 9:49 pm #1331041Hi 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,
RolfDecember 1, 2021 at 10:59 am #1331115Hi,
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,
IsmaelDecember 7, 2021 at 3:39 pm #1331869Hi 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,
RolfDecember 8, 2021 at 5:02 am #1331916 -
AuthorPosts
- You must be logged in to reply to this topic.