-
AuthorPosts
-
March 21, 2018 at 10:27 am #930465
Hi,
It concerns https://michiels-reusel.nl/.
When building this site, my client wanted two logo’s in the header which I created with some help from you by using a header widget and some CSS.
The widget has following code:
[av_one_half first]<a href="http://michiels-reusel.nl/glas-en-schildersbedrijf/" rel="attachment wp-att-190"><img class="aligncenter size-full wp-image-190" src="http://michiels-reusel.nl/wp-content/uploads/2016/01/Michiels-Glas-Schildersbedrijf.png" alt="Michiels Glas & Schildersbedrijf" width="304" height="80" /></a>[/av_one_half] [av_one_half]<a href="http://michiels-reusel.nl/verf-en-wonen/" rel="attachment wp-att-183"><img class="aligncenter size-full wp-image-183" src="http://michiels-reusel.nl/wp-content/uploads/2016/01/Michiels-Verf-Wonen.png" alt="Michiels Verf & Wonen" width="196" height="80" /></a>[/av_one_half]
The CSS has following code:
#header .widget { transform: translate(0%); min-width: 100%; padding-top: 0; padding-bottom: 0; } @media screen and (min-width: 990px) { .container.av-logo-container { display: none; }} @media screen and (max-width: 990px) { #advanced_menu_hide { display: none !important; }} @media only screen and (max-width: 990px) { .responsive #top .logo { display: none; } .html_header_top.html_bottom_nav_header #header_main { padding-bottom: 20px; } #advanced_menu_toggle, #advanced_menu_hide { position: relative; right: auto; top: 30%; margin-top: -15px; margin: 0 auto; } }
For a long time I hesitated to update Enfold. You’ve changed the code for the header and tablet/mobile version quite a bit and the whole structure of my header (on tablet and mobile) gets mixed up when I update Enfold. But sometime someday I have to update Enfold too… So I’ve put everything together and hope that you can help me to achieve the same result as we have now. Fyi: I set back Enfold to 3.8.4 since the site is active and I cannot keep it a mess for too long…
Please find attached screenshots of Enfold version 3.8.4 versus 4.2.6 for tablet and mobile and login details if you wish.
Can you please help?
Thanks & best regards,
MoniqueMarch 22, 2018 at 12:02 pm #931181Hey Monique,
I see that you are using a child theme, have you tried adding your includes/helper-main-menu.php to your child theme to keep the same menu and social setup in the header?Best regards,
MikeOctober 31, 2018 at 5:35 pm #1028550Hi,
It is a while ago that I got stuck into this problem. I didn’t have the ‘courage’ to dive into this. :-( But in the end Enfold needs to be updated and this issue needs to be solved…!
Meanwhile I updated the site to Enfold 4.5. This is now live. On screens from 990 px upwards it all looks fine. There are issues with smaller screens below 990 px. Please check for yourself the responsive design mode in FF Developer Edition or Chrome. Or on any small device.
I checked Mike’s idea to add the includes/helper-main-menu.php to the child theme, but that unfortunately doesn’t work. So I deleted that again.
Is it possible that / what I would like to achieve is:
1) On screens 768-989 px
* Is it possible to have the social media icons back in the top bar?
* And then have the two logo’s as well as the hamburger menu icon next to one another in one row, divided for example 40%, 40% and 20%?2) On screens up to 767 px
* Maybe have only one logo on the left (the main logo in Enfold options – I will try to persuade my client to accept that) and on the right have the hamburger menu icon.Would you be able to help me with this? If you would like to have login details, please let me know. I could also set up a development location where you could work without interfering with the live site – if you wish.
Thanks in advance & kind regards,
MoniqueNovember 1, 2018 at 3:09 am #1028679Hi,
It’s good to hear from you again :) I took a look at the site and glad to see that you have updated to v4.5, so it seems that you will only need some css to achieve what you are looking for.
For mobile I was able to get the logos side-by-side, show the social icons over the header, and bring the burger menu under the logo.
Please try this code in the General Styling > Quick CSS field:/*show social icons and 2 logos inline on mobile*/ @media only screen and (max-width: 767px) { .responsive #top #wrap_all #header .social_bookmarks { display: block !important; } .responsive #top #wrap_all #header_main .av-logo-container .main_menu .noLightbox.social_bookmarks { display: block !important; } .responsive #top #wrap_all #header_main #text-2 .textwidget .av_one_half.flex_column_div { width: 47% !important; } .responsive #top #wrap_all .main_menu { top: -50px !important; } .responsive #top #wrap_all #header_main #text-2 .flex_column_div.first { margin-top: 26px !important; } }
Please see the screenshot in Private Content area of the expected results.
Once you add the css, Please clear your browser cache and check.Best regards,
MikeNovember 1, 2018 at 10:27 am #1028790Hi Mike,
Thanks for your help. I work with child theme by the way, so put the code in my child’s style.css. I have done what you suggested. I am still seeing some issues – it still looks quite ‘messy’ (see also my screenshots below):
1) On mobile screens up to 767 px (see also your own screenshot mentioned above):
1. The social icons are showing twice now: in the top bar and in the logo area.
2. The logo’s are not placed in (horizontal) line with each other.What would be preferred:
1. The social media icons shown in the top bar only, so not shown in the logo area.
2. The hamburger menu icon shown either in the center or right of the logo’s.
3. The logo’s placed in (horizontal) line with each other.2) On mobile screens from 768 up to 989 px:
1. The social icons are not shown in the top bar.
2. The logo’s are now placed neatly in (horizontal) line with each other :-)What would be preferred:
1. The social media icons shown in the top bar, so not shown in the logo area.
2. The hamburger menu icon shown either in the center or right of the logo’s.Is it possible to achieve that?
Looking forward to your reply.
Kind regards,
MoniqueNovember 2, 2018 at 4:41 am #1028991Hi,
For #1: to remove the extra social icons please try:@media only screen and (max-width: 767px) { .responsive #top #wrap_all #header #header_main .inner-container .main_menu ul.social_bookmarks { display: none !important; } }
Then please replace the rule to make the logo width 47% with this:
.responsive #top #wrap_all #header_main #text-2 .textwidget .av_one_half.flex_column_div { width: 38% !important; }
Then replace the rule to make the burger menu move up -50px, with this:
.responsive #top #wrap_all .main_menu { top: -100px !important; }
I have a couple of other ideas to address some of the other issues, but perhaps it would be easier if I could login to adjust the css?
Best regards,
MikeNovember 2, 2018 at 10:04 am #1029089Hi Mike,
I would appreciate very much if you want to do that. When I built this site I followed some Enfold ‘rules’ to get a 2nd logo in the header, but since the header in the theme was rebuilt completely, it doesn’t work so well anymore…
Please find WP login details below. Let me know in case you also want ftp login.
Kind regards,
MoniqueNovember 2, 2018 at 1:59 pm #1029155Hi,
To work with the two logos positioned correctly under screen size 767px & under, I created a new image from the two logos, and then I added this css in the WordPress > Customize > Additional CSS:@media only screen and (max-width: 767px) { .responsive #top #wrap_all #header_main #text-2 .textwidget .av_one_half.flex_column_div.first { content: url(https://your-url.nl/wp-content/uploads/2018/11/mobile-logo.jpg); background-size: contain; width: 80% !important; } #text-2.widget_text .textwidget .flex_column_div:nth-child(even) { display: none !important; } }
Please see the screenshot in Private Content area, and clear your browser cache and check.
If you feel the image is not right, please create a image with the same dimensions where the two logos are positioned correctly.Best regards,
MikeNovember 7, 2018 at 12:41 pm #1030830Hi Mike,
Sorry, I’ve been occupied with other things the past few days. Picking this up again now. First of all thanks a lot for your effort to help me!
1) Mobile screens up to 767px
Your solution for smaller screens up to 767px partially works. I like the idea of one image, although in this way we cannot have a link to the two different sections of the company. On very small screens (up to 479px) it really looks good now, like your expected results image. However, on screens from 480px up to 767px, the menu (sort of) overflows the image. Since the social media icon are in the top bar, we won’t need the vertical divider and right padding and margin. So I changed your code slightly to:
@media only screen and (max-width: 767px) { .responsive #top #wrap_all #header_main #text-2 .textwidget .av_one_half.flex_column_div.first { content: url(https://michiels-reusel.nl/wp-content/uploads/2018/11/mobile-logo.jpg); background-size: contain; width: 80% !important; } .avia-menu.av_menu_icon_beside { padding-right: 0px !important; margin-right: 0px !important; border-right-width: 0px !important; } #text-2.widget_text .textwidget .flex_column_div:nth-child(even) { display: none !important; } }
I suppose lateron I can replace this code to be in my Child’s style.css without any problems?
This would fix the issue for screens 767px and under. HURRAY!
2) Mobile screens from 768 up to 989 px
That leaves us with the remaining issues of screens from 768 up to 989px. Can you please look back at my post of November 1st and see if somehow you can help me with that as well?
Best regards,
MoniqueNovember 8, 2018 at 4:22 am #1031069Hi,
For the screen size 76px to 989px, and have the social icons in the top bar & have the burger menu inline with the logos, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:@media only screen and (max-width: 989px) and (min-width: 768px) { .responsive.html_mobile_menu_tablet #top #header #header_meta .social_bookmarks { display: block !important; text-align: center !important; } .responsive.html_mobile_menu_tablet #top .av-logo-container .main_menu .social_bookmarks { display: none !important; } .responsive #top #wrap_all .main_menu { top: -90px !important; } .avia-menu.av_menu_icon_beside { padding-right: 0px !important; margin-right: 0px !important; border-right-width: 0px !important; border-right-style: none !important; } #text-2 div .av_one_half { margin-left: 0px !important; width: 43% !important; } .responsive.html_mobile_menu_tablet #top #wrap_all .av-logo-container { height: 0px !important; line-height: 0px !important; } .responsive #header .social_bookmarks { width: 100% !important; text-align: center !important; margin: 0 !important; } .av_icon_active_right .social_bookmarks { padding-left: 45% !important; } }
Please see the screenshot in Private Content area for the expected results. Please clear your browser cache before checking.
Best regards,
MikeNovember 9, 2018 at 10:36 am #1031600Hi Mike,
That is great! I really looks “neat and tidy” :-)
Thank you so much for your all help! If I could I would rate Enfold 10 stars for support!
Can you please flag this topic as solved?Sorry, one more question. When I transfer the code which is now in Extra CSS to Enfold Child style.css, the code gets mixed-up which previous css (I think). Can you tell me where in style.css I should put the code to avoid this from happening?Sorry once again. I got it all sorted now. Can you flag this topic as solved please?
Cheers,
Monique- This reply was modified 6 years ago by Monique. Reason: All sorted now
November 9, 2018 at 12:35 pm #1031627 -
AuthorPosts
- The topic ‘Issues with header when updating Enfold’ is closed to new replies.