• Hi,

    I would like to change the color, size, font of the page title displayed in each page.
    I tried something like that in my css child theme.
    .page-title {
    color :#81d742 !important;
    }
    But it doesn’t work.

    Any idea.

    Thx.

    Catherine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter catheg

    (@catheg)

    I could change the color and the size of the page title using this code :
    .hentry .title-post {
    color :#81d742;
    font-size: 16px;
    font-family: ‘Dancing Script’, cursive;

    }

    But it doesn’t work for the font-family. Any idea.
    Thx.

    Hello there,

    To use the Dancing Script font family, you have to load its source from Google Font API in your site. Please refer here.

    1. Install and activate the Header and Footer Scripts plugin. Go to Settings > Header and Footer Scripts.

    2. Paste the following to the “Scripts in header:” box

    <link rel="stylesheet" type="text/css"  />
    

    3. Save settings

    4. Then apply the below CSS code:

    
    .hentry .title-post {
      font-family: Dancing Script;
    }  
    

    Regards,
    Kharis

    Thread Starter catheg

    (@catheg)

    Thx Kharis.
    I added the following line after the </head> tag
    <link rel=”stylesheet” type=”text/css” href=”//fonts.googleapis.com/css?family=Dancing+Script” /> in the header.php of my child theme.

    And now I can use the font in my site.

    Regards.

    Catherine

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page title’ is closed to new replies.