Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1278864

    Nabeel A
    Moderator

    Hi again,

    Try adding the following code in your Child Theme’s functions.php file:

    add_action('wp_head', 'head_style_custom');
    
    function head_style_custom() { ?>
    <link href="https://fonts.googleapis.com/css?family=Aref+Ruqaa" rel="stylesheet">
    <?php }

    This should include the font in your site. Let us know how this goes!

    #1278885

    yoni_BD
    Participant

    Hi guys,

    Still now luck…

    I want to make sure that I am doing what you are asking me. When you ask me to change my child theme style.css, you mean that I paste it under the commented area, like this:

    /*
    
    Theme Name: X
    Theme URI: http://theme.co/x/
    Author: Themeco
    Author URI: http://theme.co/
    Description: An immensely powerful and endlessly customizable WordPress theme.
    Version: 4.6.4
    License: GNU General Public License v2.0
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: __x__
    
    */
        
    
    add_action('wp_head', 'head_style_custom');
    
    function head_style_custom() { ?>
    <link href="https://fonts.googleapis.com/css?family=Aref+Ruqaa" rel="stylesheet">
    <?php }
    
    

    I hope that this is correct.

    Once I do this, I then go to cornerstone and then add this to change the font:

    .x-blockquote {
      font-family: 'Aref Ruqaa', serif;
      font-size: 24px;
      color: #000;
    }
    
    .x-blockquote .x-cite {
      font-family: 'Aref Ruqaa', serif;
      font-size: 16px;
      color: #aaa;
    }

    Still, this doesn’t work.

    #1279043

    Jade
    Moderator

    Hi there,

    Apologies for the confusion. Please add this code below to the functions.php file of the child theme.

    add_action('wp_head', 'head_style_custom');
    
    function head_style_custom() { ?>
        <link href="https://fonts.googleapis.com/css?family=Aref+Ruqaa" rel="stylesheet">
    <?php }

    Then add this to the CSS customizer:

    .x-blockquote {
      font-family: 'Aref Ruqaa', serif;
      font-size: 24px;
      color: #000;
    }
    
    .x-blockquote .x-cite {
      font-family: 'Aref Ruqaa', serif;
      font-size: 16px;
      color: #aaa;
    }
    #1279307

    yoni_BD
    Participant

    Hi Jade,

    Thanks a lot! It works!

    You guys rock!

    #1279542

    Rue Nel
    Moderator

    Hey There,

    You’re welcome! We are just glad we were able to help you out.
    Thanks for letting us know that it has worked for you.

    Cheers.