Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #1469272

    Hello,

    I’m trying to place some text “30 Years of Excellence” below the logo. I’ve looked through all the documentation and have added code snippet to both the functions.php and style.css files. I’ve added a new widget also in the widgets panel. I am getting nothing. I’ve disabled the cache plugin and also disabled js compression and merging. I also did a hard refresh, etc. as explained in the documentation. Could you please help or confirm I’ve placed the correct code snippets. Thanks,

    Lisa

    #1469296

    Hey iveyeng,

    Did you try following this? https://kriesi.at/documentation/enfold/logo/#text-logo-with-subtext

    Best regards,
    Rikard

    #1470703

    Rikard,

    I tried as you suggested and it worked. However, the mobile version has too much white space between the logo and first section of content. Is there CSS that will take care of that issue on mobile while maintaining the desktop version? This is the custom CSS I currently have. Thanks!

    #top .logo,
    #top .logo a {
    overflow: visible;
    }

    /* Subtext styling */
    .logo .subtext h1 {
    font-size: 13px;
    font-weight: 600;
    }

    .logo .subtext {
    z-index: 999;
    }
    /* Reduce the logo height to make space for the subtext below */
    #top #header .logo img {
    max-height: 65%!important;
    margin-top: 10px;
    margin-bottom: 12px;
    }

    /* OPTIONAL CHOICE : Change position of subtext when scrolled */
    #top #header.header-scrolled .logo img {
    max-height: 100%!important;
    }
    #top #header.header-scrolled .logo .subtext {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(120%, -50%);
    }

    #1470734

    Hi,

    Thank you for the update.

    You can add this css code to remove the bottom margin of the logo:

    @media only screen and (max-width: 767px) {
        /* Add your Mobile Styles here */
        #top .logo, #top .logo a {
            margin-bottom: 0 !important;
        }
    }
    

    Best regards,
    Ismael

    #1471349

    Hi Ismael,

    I tried the css code (put it in the enfold child css file) to remove bottom margin for mobile. However, it did not seem to work. Any idea why it didn’t work?

    Lisa

    #1471366

    Hi,

    Thank you for the update.

    Where did you add the css code? Please try to toggle or temporarily disable the Enfold > Performance > File Compression settings to make sure that the changes take effect.

    Best regards,
    Ismael

    #1471367

    Hi,

    UPDATE: We found an invalid code in the Quick CSS field and corrected it. Please make sure to purge the cache before checking the page.

    Best regards,
    Ismael

    #1471434

    Hi Ismael,

    I added the css code to the enfold child css file. Should they be added to Quick CSS field? The file compression settings were already disabled. I also purged the cache. Unfortunately, I don’t see the changes on my mobile device.

    #1471462

    Hi,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    @media only screen and (max-width: 767px) {
        .responsive #top #wrap_all #header {
            height: 190px;
        }
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1471712

    Hi Mike,

    Unfortunately that did not work. And I cleared the browser cache. Any other ideas?

    #1471779

    Hi,
    When I check I see this:
    Enfold Support 6540
    is this not correct, try adding a screenshot of what you wanted to see.

    Best regards,
    Mike

    #1471806

    Hi Mike,

    Not sure how to attach a screenshot on here. Your screenshot looks correct, but that looks like the desktop version. It’s the mobile version where I’m having issues. There’s two much white space between the logo/30 years text and the gray box. I’ve cleared the browser cache several times.

    #1471866

    Hi,
    When I test the css that I posted above:

    @media only screen and (max-width: 767px) {
        .responsive #top #wrap_all #header {
            height: 190px;
        }
    }

    the mobile looks like this:
    Enfold Support 6546
    I added it to the top of your Enfold Theme Options ▸ General Styling ▸ Quick CSS field and it now works, please clear your browser cache and check.

    Best regards,
    Mike

    #1471981

    Hello,
    I can see the changes when using Chrome dev tools mobile emulator on desktop. But on my phone (iPhone 14 Pro) after clearing browser cache, it still does not take effect. I tried it in Safari and Chrome. I’m wondering if I should try deleting and reinstalling the apps? I’ll try checking on someone else’s mobile device or a tablet. Thanks for your help.

    #1471986

    this is a not so complex Logo – why don’t you make a svg from it. The advantage is – that it is a vector based Graphic. So it is always sharp.
    The font is, i guess Trade Gothic – so only the branding is to create:

    Download it from here – and forget about sub logo text etc.

    https://webers-testseite.de/wp-content/uploads/IVEY-logo.svg

    You can contact me again in five years. ;)

    PS: if you like to have different colors – then open the svg with a good text editor (notepad ++ or sublime text) – you will see that the groups are ID’s and different colours are classes: – so it is easy to recolorise it:

    #1472014

    Hi,
    Thanks for your advice Guenni007
    iveyeng I don’t have an iphone, but I checked on a Mac in safari and found that after I cleared your WP Rocket plugin and cleared the Safari plugin the css is working.
    Please note that testing with iPads & iPhones 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.
    I also noted the safari needed a different value, 177px instead of 190px for Android, so I adjusted the css to this:

    @media only screen and (max-width: 767px) {
        .responsive.avia-safari #top #wrap_all #header {
            height: 177px !important; 
        }
    }
    @media only screen and (max-width: 767px) {
        .responsive #top #wrap_all #header {
            height: 190px; 
        }
    }

    This is the Safari mobile view:
    Screen Shot 2024 11 23 at 9.00.57 AM
    If you still don’t see this try disabling your WP rocket plugin until to finish building your site.

    Best regards,
    Mike

    #1472040

    benefit of svg Logo
    ( that is created like that (good Grouping inside and well documented with ID’s and classes ))

    see here what happens to your Logo on scrolling or making the screenwidth smaller: https://webers-testseite.de/aussie/

    Edit: ok – i now remove it from that example page – seems that there is no interest of having a sharp logo ;)

    #1472204

    Mike,
    Both Chrome and Safari on Iphone are now rendering correctly. Thank you for your help!

    Guenni007,
    Thank you for recommending the other workaround. I am aware the logo graphic is not very sharp. That is unfortunately what I have to work with. I might try the svg logo. But we are only leaving up the “30 years of excellence” tagline for another month or so. Could you create it without the “30 years of excellence”? And I’m not sure how to download the file. Thank you!

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