-
AuthorPosts
-
January 26, 2021 at 8:09 pm #1275559
Hello,
We were looking for some changes in my header because we want the menu below and the logo left or right.
I have found this page; https://kriesi.at/documentation/enfold/example-of-widget-left-logo-right-menu-below/When i follow the instructions on this page; https://kriesi.at/documentation/enfold/header/
And additionally follow the this pageMy menu is going wrong and my logo is going to the left. When i add an image in the Widget Header the widget is above my logo and not right or left.
Probably i am doing something wrong, but i cannot find what.
Can you help me out?Kind Regards.
January 28, 2021 at 8:09 am #1275998Hey ZikomoWebdesign,
Thank you for the inquiry.
Did you add the css code provided in the documentation? The css code should allow you to move the position of the elements or change their order within the header.
// https://kriesi.at/documentation/enfold/example-of-widget-left-logo-right-menu-below/#toggle-id-2
Best regards,
IsmaelJanuary 28, 2021 at 10:50 am #1276025Hi Ismael,
Yes i did exactly what the documentation says.
Thats why I find it kinda strange that the whole page is flipping :-)I was hoping to get the same result as that example?
What can I do to fix it?
Kind Regards
January 29, 2021 at 4:27 am #1276216Hi,
Thank you for the update.
It is probably not working because the menu is positioned below the header. The Enfold > Header > Header Layout > Menu and Logo Position settings should be set to Logo left, Menu right.
Best regards,
IsmaelJanuary 29, 2021 at 1:50 pm #1276296Hi Ismael,
Then i get the same result. widget is above logo and menu.
Kind Regards.
January 29, 2021 at 2:38 pm #1276306Hi,
Thank you for the info.
Are you sure that you have copied all of the css code from the documentation? Some of the styles are missing like the css that is supposed to be applied to the widget.
Try to remove the previous css code and replace it with this one.
// https://pastebin.com/vwtMD5zk
Please do not forget to purge the cache and temporarily disable the Performance > File Compression settings.
Or post the login details in the private field so that we could take a look in the dashboard.
Best regards,
IsmaelJanuary 29, 2021 at 5:44 pm #1276359Hi Ismael,
I have changed the CSS still no difference.
I have created an account for you, can you check it out?February 1, 2021 at 5:02 am #1276678Hi,
Thank you for the info.
In the functions.php file, we just replaced the “ava_main_header” with the “ava_after_main_menu” hook to move the widget inside the proper container after the main menu. Please purge the cache or do a hard refresh before checking the page.
Best regards,
IsmaelFebruary 1, 2021 at 11:25 am #1276748Hi Ismael,
Great. That looks a lot better.
Is is also possible to stretch the menu bar over the whole page now?Like in this screenshot?
Kind regards
- This reply was modified 3 years, 9 months ago by ZikomoWebdesign.
February 2, 2021 at 11:06 am #1277060Hi,
That should be possible with the following css code but you may need to also adjust the rest of the elements within the header container. Please look for the css using this selector..
.responsive #top #header #header_main .inner-container .main_menu
.. and add these properties..
position: absolute; width: 110vw; bottom: -30px; left: -20vw;
Or just use this css code.
.responsive #top #header #header_main .inner-container .main_menu { order: 3; flex-basis: 100%; align-items: center; align-self: center; height: inherit !important; background: gold; justify-content: center; position: absolute; width: 110vw; bottom: -30px; left: -20vw; }
Best regards,
IsmaelFebruary 19, 2021 at 7:26 pm #1282310Hi Ismael,
Sorry for the late reaction! It works thanks! Can i ask you one last item?
The menu is now stretched over the full length of the screen but not in line with the rest of the content?How can i change that?
Kind Regards
February 23, 2021 at 11:47 am #1283040Hi,
Thank you for following up.
Try to replace the latest css code with this one to limit the width of main menu.
.responsive #top #header #header_main .inner-container .main_menu { order: 2; flex-basis: 100%; align-items: center; align-self: center; height: 42px; background: #00607b; justify-content: center; position: absolute; width: 100vw; bottom: -25px; left: 50%; transform: translate(-50%, 0); }
Then use this css code adjust the maximum width of the inner container.
.responsive #top #header #header_main .inner-container .main_menu .avia-menu { max-width: 1600px; }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.