Change font for only 1 page

Discussion in 'Infoway WordPress Theme' started by nationsloans, May 29, 2014.

  1. nationsloans

    nationsloans New Member

    Joined:
    Apr 16, 2014
    Messages:
    7
    Likes Received:
    0
    How would I change the font only for one page and not the rest of the site?
     
  2. Piyush

    Piyush Support Staff

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

    Through page id selector you can apply css style code only for specific pages.

    Firstly go to the Pages > All Pages in your dashboard and hover the edit option of that page on which you want to change the font and copy its page-id number.

    See the image for reference
    [​IMG]

    Now, add that page id in the css code given below( current page id is 2)
    after that paste the code given below in Custom CSS section
    (Appearance -> Theme Options -> Styling Options -> Custom CSS) of your dashboard.


    Code:
    .page-id-2 h1, .page-id-2 h2,
    .page-id-2 h3, .page-id-2 h4, .page-id-2 h5,
    .page-id-2 h6, .page-id-2 a, .page-id-2 spam,
    .page-id-2 p, .page-id-2 ul, .page-id-2 div{
    font-family:symbol ! important;
    } 
    In place of "symbol" you can put your font.
    This will solve your issue.
     

Share This Page