Change font and use Google Fonts

Discussion in 'RoadFighter WordPress Theme' started by callebe, Jun 25, 2013.

  1. callebe

    callebe New Member

    Joined:
    May 25, 2013
    Messages:
    28
    Likes Received:
    0
    Hi,

    I would like to know how to change the font in my template.
    I Want to use "PT SANS" as main font and "PT SANS NARROW" as secundary font.
    Google provided me the code. How can i insert on my Main Code?

    Code:
    <link href='http://fonts.googleapis.com/css?family=PT+Sans|PT+Sans+Narrow' rel='stylesheet' type='text/css'>


    CSS Integration
    font-family: 'PT Sans', sans-serif;
    font-family: 'PT Sans Narrow', sans-serif;
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
  3. callebe

    callebe New Member

    Joined:
    May 25, 2013
    Messages:
    28
    Likes Received:
    0
    Awesome! Thank you very much!
     
  4. callebe

    callebe New Member

    Joined:
    May 25, 2013
    Messages:
    28
    Likes Received:
    0
    Just one last doubt...

    This modifications applied only for the secundary fonts.
    For example, i have a lot of pages, and it keep showing the Champagne and Limosine font. Didn't change to PT Sans.
    How can i do it?

    Page that didn't change: http://ca4u.com.br/home/?page_id=2

    Thanks
     
  5. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207

    Go to js > custom.js present in your theme directory and remove the code given below

    Code:
     //Cufon replacement
    Cufon.replace('h1')('h1:hover')('h2')('h3')('h4')('h5')('h6');
    
    This will solve your issue.
     
  6. callebe

    callebe New Member

    Joined:
    May 25, 2013
    Messages:
    28
    Likes Received:
    0
    Gourav,

    I'm sorry but i can't find this folder in my theme directory.
    Can you help me?

    Thanks,
     
  7. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    You will not get js directory in your dashboard.
    You can edit custom.js file through FTP.
    Open your Theme directory (through FTP) > js directory > custom.js
    Download custom.js file from there, Edit it, Then again upload it at the same place..
     
  8. callebe

    callebe New Member

    Joined:
    May 25, 2013
    Messages:
    28
    Likes Received:
    0
    Piyush, forgive my insistence but, i can't find this file. I looked everywhere...
    Look what i have here:

    On wp-admin
    I have a "js" directory but with no custom.js file. Instead i have:
    custom-background.js
    custom-background.min.js
    custom-fields.js
    custom-header.js
    and that's it

    On wp-includes
    I Have a JS directory but with no custom.js file. Instead i have a lot of files as customize.(...).js


    I tried to open this files and anyone of it has this line code "Slider/Jquery(function)


    Please, help me...

    Callebe from Brazil
     
  9. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to
    Appearance > Editor > Theme functions(functions.php)

    and remove the code given below

    Code:
     wp_enqueue_script('inkthemes-cunfon-yui', get_template_directory_uri() . '/js/cufon-yui.js', array('jquery'));
    Sending image for reference

    2013-07-02_1128.png



    This will solve your issue.
     

Share This Page