Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1189205
    logoglo
    Participant

    Hi there, I want to keep the body weight normal, but I want to change just one area of text to be light, I have tried this:

    <p style=”text-align: center; color: #ffc000; font-weight: 100; font-size: 28px;”>Calidad y profesionalismo a precios bajos</p>

    But it doesnt seam to change on the page.

    http://www.monocromo.design/

    Thanks.

    #1189377
    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    It’s working on my end. If I remove the font weight, it’s goes bolder. Would you mind providing some screenshot so I can compare it?

    Thanks!

    #1191235
    logoglo
    Participant

    It changes, but it doesnt go past “regular” weight, I wanted light, so I put in 100, and it doesnt change. Changes from bold to regular if you put in 300, but doesnt change when it goes to 100.

    #1191263
    Rupok
    Member

    Hi there,

    Thanks for writing back. There is no such weight as 100 or 300 for the font “Lato” that’s being used. Available weights are 400, 600 and 700 that you can use.

    Cheers!

    #1191442
    logoglo
    Participant

    In the custom menu, you can select 100 as a weight, see the screengrab.

    So if I change it in the custom menu, it changes to light as the heading, therefor you must be able to have it in the subheading as I want it right?

    like this:

    <p style=”text-align: center; color: #ffc000; font-weight: 100; font-size: 28px;”>Calidad y profesionalismo a precios bajos</p>

    But like I said, it doesn’t reflect on the page.

    #1191498
    Jade
    Moderator

    Hi there,

    It seems like the 100 weight for Lato font isn’t embedded on the page. Kindly try to add this code in the functions.php file of your child theme:

    /**
     * Enqueue font.
     */
    
    add_action( 'wp_enqueue_scripts', 'load_lato_font' ); 
     
    function load_lato_font() {	
    	wp_enqueue_style( 'lato-google-font', 'https://fonts.googleapis.com/css?family=Lato:100,300,400,700' );
    }

    Hope this helps.

    #1191513
    logoglo
    Participant

    Worked perfectly! thanks.

    #1191721
    Friech
    Moderator

    You’re more than welcome, glad we could help.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1189205 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>