WordPress.org

Ready to get started?Download WordPress

Forums

Changing font in child theme (4 posts)

  1. LucyM
    Member
    Posted 1 year ago #

    Hello,
    Hoping for a bit more help. I've learned my lesson from last time and am now working with a child theme via FTP, and quite proud of myself! However I need to change the font in the site title and don't want to just change h1 and h2 in case I override something somewhere else that I don't want to change. I'm using firebug, and it appears that the bits I want to change are the following
    <hgroup>
    <h1 id="site-title">
    <span>
    The Good Shelf Company
    </span>
    </h1>
    <h2 id="site-description">Handmade in the UK</h2>
    </hgroup>

    Can someone please help me out with the correct code. I know that I have to chose the font or font family and how to make it bold or chose the size, it's simply that I'm not sure how to specify only the title area. I plan on putting it in the style.css of my child theme

  2. LucyM
    Member
    Posted 1 year ago #

    oops - included link, duh! obviously it's just an <a ref but it's the font included in it that I want to change.

  3. LucyM
    Member
    Posted 1 year ago #

    May have just found my own answer:

    #site-title a {
    color: #111111;
    font-size: 30px;
    font-weight: bold;
    line-height: 36px;
    text-decoration: none;
    }a

    Is that what I need to modify?

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Yep, copy the part you want to change to the child theme and change it there - good going :)!

Topic Closed

This topic has been closed to new replies.

About this Topic