• Hi,

    On the site https://depannageordinateur.fr

    I’m trying to change the font size of my phone number in the header.

    I did this in the style.css file but it doesnt’ work, do you know why ?
    Thank you

    /*
    This is for header text with phone number, to set it bigger
    */
    .site-top-bar-left-text{
    	font-size: 40px;
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter redizdead1

    (@redizdead1)

    So I realize style.css is not the right file. I’m learning, and if someone could help it would be great. I would like to do this without any plugin.

    Thank you !

    It’s being set in oceanic/templates/css/oceanic-header-standard.css.

    Do you know how to use your browser’s developer tools? By using the developer tools you should be able to click any element on your site and see both what that element’s style is set to as well as what file is setting it. Here’s an article on inspecting elements with Chrome’s Developer tools, which are great:

    https://developer.chrome.com/devtools/docs/dom-and-styles

    Thread Starter redizdead1

    (@redizdead1)

    Thank you very much for your help !!!

    Thread Starter redizdead1

    (@redizdead1)

    Ok so I made the change but I still have a problem:
    I use a child theme, that works great usually but not in this case.
    Maybe my functions.php file in my child theme doesn’t contain the right commands ? I’m a noob I’m not sure…

    Here is what I did: I have a folder oceanic-child, I created oceanic-child>templates>css>oceanic-header-standard.css with the right modifications .

    It doesn’t work. However I’m sure my child theme’s css is properly used on my site.

    Here is the content of my functions.php :

    <?php
    function wpm_enqueue_styles(){
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'wpm_enqueue_styles' );

    Thak you for your help !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to change font size in the header ?’ is closed to new replies.