Tagged: ,

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

    Hello!

    We’ve assigned the font ‘Nunito’ to all website elements.
    Works great, but we realised in Safari some elements and sections are not respecting the settings and are displayed in Helvetica.
    In certain pages (those that are not using the advanced layout builder I believe) even the main menu and footer are replaced by Helvetica.
    Is there a way to solve this?

    These are the elements we detected are not using Nunito font in Safari:
    – Texts inside forms, like contact forms (*Name, *Email, *Message …)

    These are the pages that are not using Nunito font in Safari and actually disable the font in menus, footer etc:
    – All elements inside the Games section (Shop page), and all product pages.
    – All elements in the page Events. And the events themselves.
    – Food menu (see link below)

    Ideally this problem shall be solved for all browsers. Did not check, but may affect Chrome or other browsers as well as Safari.
    Everything looks great on my end on Brave.

    Thanks!!

    #1349467

    First – what version of Safari do you use?
    Then – the entries managing the font used are set by a class that is added to the body tag.
    ( in my case it is open-sans – click to enlarge the image )

    the entries are ( in my case with open-sans ) :

    h1, h2, h3, h4, h5, h6, 
    #top .title_container .main-title, 
    tr.pricing-row td, #top .portfolio-title, 
    .callout .content-area, 
    .avia-big-box .avia-innerbox, 
    .av-special-font, 
    .av-current-sort-title, 
    .html_elegant-blog #top 
    .minor-meta, 
    #av-burger-menu-ul li {
    	font-family:'open sans', Helvetica, Arial, sans-serif; 
    }
    
    body.open_sans {
    	font-family:'open sans', Helvetica, Arial, sans-serif;
    }

    you see that the rule on top is not in dependency to that class – but f.e. the p-tag is. – but the default rule of enfold is to “inherit” the font.
    Inherit goes to the closest parent element that has a font definition.

    one possibility is : this class isn’t set on your installation. And this will be no default behavior.
    next: your Safari is an old one – and does not support modern font format (woff, woff2 ) but only : truetype or svg.
    But even then, I believe that Enfold has taken that into account in their writings and included them.

    Is there a link that we can inspect why this could be
    you see that here on open-sans it is as fall-back font Helvetica too. But the first font will be take – if there are no problems with that setting.

    #1349497

    Hi wedesignshanghai,

    Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1349516

    Hi Rikard,

    Sure, credentials in private.

    We also noticed some elements from the block editor are not behaving properly (colours and font sizes don’t seem to apply properly).
    In the page Games (shop) we added a block with 2 columns and an image, the title, text and button colours and font size does not seem to behave properly. Basically when we change the colour it changes the size in the front end and vice versa.

    Not sure if this and the Safari fonts issue are related, but would be great if you could have a look.

    Thank you!

    #1349519

    Guenni007, thanks for the lead!

    #1349560

    Hi,

    Thanks for that. I tried uploading the font in question again, and it works as it should after that. If you need other font weights which are not included in the files I uploaded, then please try deleting the previous versions, and upload the font again.

    Best regards,
    Rikard

    #1349610

    Hi Rikard,

    Thanks for looking into this.
    With your font uploaded (Nunito Test 400) 70% of the problem was solved. However some titles were still displaying in Helvetica, and there is a weird behaviour on the main menu: pages still displaying Helvetica also change the menu items to Helvetica.

    I uploaded the whole font family as instructed (went to https://fonts.google.com/specimen/Nunito selected all variations and downloaded a .zip file), and we are back to all messed up as it was before your intervention.

    When the full family is uploaded, under General Styling / fonts it displays as “nunito ( )”. Not sure if the problem is there, but it is really not working when the whole font family is uploaded.

    I also tested Guenni007 code. When added, it does change the fonts almost everywhere but destroys the whole website layout, bold and italic versions are gone, etc. If the full font family we uploaded is selected under General Styling / fonts, the code has no effect.

    I guess the problem is related to how I am adding Nunito font. Would be great if you could figure out what I am doing wrong.
    I’m sending you a screenshot, hopefully this will help you visualise the problem and find a solution.

    Thank you !

    #1349645

    Hi,

    I tried uploading the font again, with all variations included. Could you check if it’s working now please? If not, then please link directly to the page where it’s not working as it should. You can use this CSS to change the font family for placeholders in the forms:

    #top .avia_ajax_form .text_input {
        font-family: 'nunito';
    }

    Best regards,
    Rikard

    #1349655

    Hi Rikard,

    Yes, this works great now! Thanks a lot!
    There is a side effect though: now the pointer does not change into a finger pointer when it hovers over a link on mouseover.
    Any idea on how to solve this?

    Thanks !!

    #1349694

    Hi,

    I can’t see that happening on my end, and the code I sent wouldn’t affect that either. Where can we see the actual problem you are describing?

    Best regards,
    Rikard

    #1349716

    Hi Rikard,

    It’s working now!
    Sorry about this. Believe it or not, it was not working properly 12 hours ago.
    Anyway, thanks a lot for solving the fonts issue. Perfect support as usual, much appreciated!

    You can close the thread.

    #1349767

    Hi,

    Great, I’m glad that we could help you out, and thanks for the update. I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Fonts not loading properly in certain pages in Safari’ is closed to new replies.