Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1276492

    Hey there,

    I’m trying to change the font on my single product page. This is my custom CSS code:

    .entry-summary .woocommerce-product-rating .woocommerce-review-link {
        position: relative;
        font-size: 16px;
    font-family: 'Roboto', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    }

    The CSS code works great because if I change the font-family to let’s say Bebas Neue, the font does change on my page.

    However, if I choose Roboto the code automatically skips it and goes straight to Helvetica or Arial or “sans serif”.

    I checked everywhere on the Internet to see if maybe I’m not using the right line, but I don’t see where my code is wrong…

    Thank you!

    #1276662

    Hey DeMamp,

    Please try the following in Quick CSS under Enfold->General Styling, before the CSS which is calling the font:

    @import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

    Best regards,
    Rikard

    #1276749

    Thank you for your reply!

    Unfortunately, it didn’t work. I put the code at the very top of the Quick CSS box and this is what’s showing when I detect the font: https://prnt.sc/xypxtc

    The thing is that I can use Roboto if I go to General Styling and choose it as my main font. It just doesn’t work when I just want a specific text to display Roboto.

    #1276999

    Hi DeMamp,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( to be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #1278823

    Hello,

    #1279386

    Hi DeMamp,

    The login link did not work. If the font is not used for any element on the page from the theme options, the font is not loaded or you’re trying to use the font-weight that is not available with the theme.

    Please update the token.

    Best regards,
    Victoria

    #1279473

    Sorry, it should be working right now!

    If the font is not used for any element on the page from the theme options, the font is not loaded or you’re trying to use the font-weight that is not available with the theme.

    The theme options allow for 2 fonts only. Does that mean that the entire website can only display 2 different fonts and not 3?

    Thanks a lot

    #1279499

    Hi DeMamp,

    Well, yes and bo, in the advanced tab you can set some elements to have a different font too.

    Roboto is not loading on that page so it needs to be loaded explicitly.

    Best regards,
    Victoria

    #1279565

    Okay thank you. I thought the Google fonts were all already “loaded” since we are able to use them very easily in Enfold.

    I’m not a developer in any way so I’m not sure how to load specific fonts. From what I’ve read on Google I have to import the font using @font-face? or @import? And then specify the page I want the font to appear on?

    Would something like that work:

    .page-id-xxxx
    @import url('https://fonts.googleapis.com/css2?family=Roboto');
    font-family: 'Roboto', sans-serif;

    Thank you so much

    #1280440

    Hi,
    Sorry for the very late reply, in the Enfold theme the Roboto font is actually written as roboto, for example, if you want to only have this one product woocommerce tabs have this font, please try this css:

    #top.single-product #wrap_all #product-1008 .woocommerce-tabs p {
        font-family: 'roboto' !important;
    }
    
    

    if you want the whole product part of the page to have this font, try:

    #top.single-product #wrap_all #product-1008 * {
        font-family: 'roboto' !important;
    }

    If this don’t seem to work please ensure your cache is cleared and try placing in the WordPress > Customize > Additional CSS field, it has the highest priority.

    Best regards,
    Mike

    • This reply was modified 3 years, 10 months ago by Mike. Reason: removed image
    #1282476
    This reply has been marked as private.
    #1282616

    Hi,
    Sorry about that, I’ll be more careful. I also removed it from the server.
    Unless there is anything else we can assist with on this issue, shall we close this then?

    Best regards,
    Mike

    #1282694

    Hi Mike,

    No need to be sorry! Everything is fine, we can close this thread.

    Thank you again

    #1282704

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Roboto font not working’ is closed to new replies.