Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #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
    ARTICLE

    #1034825

    Hey 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,
    Mike

    #1034872

    I 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.
    #1034876

    Hi,
    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;
    }
    }

    2018-11-18-111335
    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;
    }
    }
    

    2018-11-18-111821

    Best regards,
    Mike

    #1034886

    Hi 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.

    #1034896

    Hi,
    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,
    Mike

    #1034911

    Ok. 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.

    #1034922

    Hi,
    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,
    Mike

    #1034959

    Hi,
    Sorry. Chrome browser space between menu with picture doesn’t show correctly at %100. But %90 and below is correctly. Safari is correct.

    #1035385

    Hi,
    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,
    Mike

    #1035685

    Hello

    Yes. (:
    1280×800 – %100

    #1037267

    Hi,
    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,
    Mike

    #1037854

    Hi,

    Thanks for reply. But not working. (:

    #1037866

    Hey 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 Shannon

    #1038497

    Yes, Please try.

    #1039214

    Hi,

    Please try adding the css above in your WordPress > Customize > Additional CSS and then clearing your browser cache.
    This seems to be working for me when testing, Please see the screenshot in Private Content area.

    Best regards,
    Mike

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