Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1403745

    Hello,

    I have used the following code to split the menu in two and add center the logo between the menu. However, for some reason, the logo is now very high, hidden by the top bar. Please check the code below and the page where you can replicate the problem.

    I highly appreciate it if you can help me out with this issue.

    .logo img {padding: 6px 0;}
    
     /*------------------------*/
    /* CSS - Logo center split menu
    /*------------------------*/
    
    @media only screen and (min-width: 780px) {
    /*In the below code nth-child(x) the value of x should be half the number of total menu items*/
    #top #header .av-main-nav li:nth-child(3) {
      /* Adjust the width of the logo */
        margin-right:250px;
    }
    
    #header .main_menu {
        /*background: gold;*/
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .av-main-nav-wrap {
        left: 50%;
        transform: translateX(-50%);
    }
    
    #header .logo {
        left: 50%;
        transform: translateX(-50%);
        z-index:999;
    }
    
    #header .logo img {    
        top: 50%;
        transform: translateY(-50%);
        max-width: 200px;  
    }
    }
    #1403801

    Hey sitesme,

    It looks fine on my end using Firefox, in which browser are you seeing this problem?

    Best regards,
    Rikard

    #1403804

    Hi, agreed! The problem seems to be on Safari only.

    #1403917

    Hi,
    Thanks for your patience and the link to your site, on Safari this is the css causing the issue from your css above:

    #header .logo img {    
        top: 50%;
        transform: translateY(-50%);
        max-width: 200px;  
    }

    this corrects:

    #header .logo img {    
        top: 0;
        transform: translateY(0%);
        max-width: 200px;  
    }

    this also works on Chrome in Windows, so I guess Safari is sticker.

    Best regards,
    Mike

    #1404707

    Hi Mike,

    Unfortunately, the code change didn’t make any difference.

    Just to make sure, I replaced the original code with the one you provided on your post. Is this right?

    Let me know if I missed something or how to fix the problem. The only problem is in Safari.

    #1404771

    Hi,

    Yes, you should replace it with the code that @Mike provided above. Did you try to temporarily disable the Enfold > Performance > File Compression settings? Also, make sure to purge the cache before testing the page again.

    Best regards,
    Ismael

    #1404927

    Hello,

    The File compression settings were already disabled.
    I am using Object Cache and WP Rocket and flushed both multiple times, but the problem persists on Safari.

    #1405002

    Hi,
    Please include an admin login in the Private Content area so we can check.

    Best regards,
    Mike

    #1405037

    Hi. Please check the admin access in PVT.

    #1405102

    Hi,
    Thanks for the login, I checked on my Mac v12.6.5 with Safari v16.4.1 and the logo is centered vertically and horizontally, please see the screenshot in the Private Content area.
    What versions are you using?
    Please note that Safari can be hard to clear the cache, often you need to also clear the history to fully purge the cache, following these steps for Safari and note Step 4 where you will Clear the History.

    Best regards,
    Mike

    #1405163

    I did all that and still didn’t see any changes. Clearing the history or all cache on Safari, didn’t work either. I did that in 2 different machines using the latest MacOS and Safari versions. Nothing worked.

    However, I played a bit with WP Rocket and clearing the “unused CSS files” solved this problem.

    It is solved now. Thank you @rikard, and @ismael for your help.

    #1405183

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Logo Centered Alignment Problem’ is closed to new replies.