-
AuthorPosts
-
November 17, 2018 at 11:45 pm #1034794
Hello my friends,
I have read the following article. But When i add widget, picture goes on top of the menu link or falls to down. Or when i add a link(img src) to the menu it’s have a subline (i think avia-menu-fx). I think i couldn’t write css correctly. I tried to explain in the picture link below. How can i add image (block/column) header right side ?Please help.
Best wishes to all ,
IMAGE
https://preview.ibb.co/bWeYN0/header.jpg
ARTICLENovember 18, 2018 at 6:19 am #1034825Hey koraytastan,
I recommend using the first method, of creating a widget area in the header and adding your text or image as a widget. What you are experiencing is the lack of room in your header for the widget.
Please link to your page with the widget area, so we can help adjust the elements.Best regards,
MikeNovember 18, 2018 at 5:15 pm #1034872I just changed the function.php and widget. You will see.
function.php
//-------------------------------- // Header widget area //-------------------------------- add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' ); function enfold_customization_header_widget_area() { dynamic_sidebar( 'header' ); }
widget
<img src="../wp-content/uploads/2018/11/Mos.jpg" width="60px" style="position: relative; z-index: 100;" margin="50px" align="right">
- This reply was modified 6 years, 1 month ago by koraytastan.
November 18, 2018 at 6:19 pm #1034876Hi,
Thank you, the smallest width your menu can be without resizing the menu items is 1160px, and your mobile menu ends at 768px, so between those two you should decide if you want to continue the mobile menu more or have the menu items smaller or a mixture of both.
Some choose to have the mobile menu go to 1024px, but I’ve seen mobile menus go to 1200px, let us know how you want to proceed.So for mobile menus I moved the image over the burger and inline with the logo with this css. For now the media query ends at 767px, but this can be changed:
@media only screen and (max-width: 767px) { #custom_html-2 { width: 60px; float: right; top: -95px; } }
For 1160px and up I put the image inline with the menu and float it to the end, and adjusted once at 1295px:@media only screen and (min-width: 1160px) and (max-width: 1295px) { nav.main_menu { width: 85% !important; } #custom_html-2 { width: 60px; float: right; top: -5px; } } @media only screen and (min-width: 1296px) { nav.main_menu { width: 75% !important; } #custom_html-2 { width: 60px; float: right; top: -5px; } }
Best regards,
MikeNovember 18, 2018 at 7:35 pm #1034886Hi Mike,
Thank you for reply. I think it was but there is diffrent space between menu with picture in the safari and chrome.
https://i.postimg.cc/RZgDWPkz/menu-space.jpg
Best regards.
November 18, 2018 at 8:57 pm #1034896Hi,
Is your Safari showing this between 1160px & 1282px and is it a iPad? I didn’t add “pixel-ratio” into the media query which the Safari takes into account.
I don’t have a IOS so I can’t effectively adjust this, but we can have a team member look at this for you.Shall we make the adjustments for 768px though 1160px, so when it’s looked at later with Safari they can check all of the sizes?
Best regards,
MikeNovember 18, 2018 at 10:08 pm #1034911Ok. We make adjustments for
@media only screen and (min-width: 1160px) and (max-width: 1295px)
This is macbook screen 13″ 1280×800 px res. Thanks.November 18, 2018 at 11:29 pm #1034922Hi,
Do you mean that you want to have someone look at the Safari issue above before adjusting the menu for 768px though 1160px ?Best regards,
MikeNovember 19, 2018 at 1:22 am #1034959Hi,
Sorry. Chrome browser space between menu with picture doesn’t show correctly at %100. But %90 and below is correctly. Safari is correct.November 20, 2018 at 3:04 am #1035385Hi,
I’m not sure I understand, what do you mean it doesn’t show correctly at 100% but 90% and below is correct?
What is the screen width of 100%?Best regards,
MikeNovember 20, 2018 at 4:56 pm #1035685Hello
Yes. (:
1280×800 – %100November 24, 2018 at 4:25 pm #1037267Hi,
Sorry for the late reply, please try adding this css:@media only screen and (min-width: 1250px) and (max-width: 1295px) { #custom_html-2 { position: element(.av-main-nav-wrap) !important; left: -8% !important; } }
Best regards,
MikeNovember 27, 2018 at 12:11 am #1037854Hi,
Thanks for reply. But not working. (:
November 27, 2018 at 1:01 am #1037866Hey koraytastan,
Did you add the code to the very top of quick css so it runs first? Also be sure to clear the cache a few times over.
Best regards,
Jordan ShannonNovember 28, 2018 at 1:22 pm #1038497Yes, Please try.
November 30, 2018 at 4:25 am #1039214 -
AuthorPosts
- You must be logged in to reply to this topic.