How to change the font of post titles (not site titles)

  • Author
    Posts
  • #36182
    rustinpeace91

    I’m working on a website on the local server of my computer, so sorry I can’t share it here, but I’ll try my best with screenshots.

    I’m using a child theme of the Mantra theme and I’m trying to change the font. For some reason there doesn’t seem to be an option on the dashboard. I changed the background color to gray since I didn’t like the white and there is this ugly shadow on the text and I generally don’t like serif fonts, especially for the website I’m building. So I open up sublime text, the styles.css sheet in my child theme, and inspect the element. It says h2 class = “entry-title” so in my .css file I make a styling for h2.entry title and change the things I don’t like.

    Here’s a screenshot and I’ve circled what I want to change
    http://imgur.com/CGJnZ1H

    And nothing happens. I’ve tried just using .entry-title and .entry-header as well…nothing works. I also browsed the FAQ and there are guides to changing the menu items, but not the title of the posts. I also looked at the forums and only found threads about changing the site title.

    #36225
    Zed
    Cryout Creations mastermind

    Try making your CSS more specific by adding body in the front of the identifier(s), like:
    body h2.entry-title { ... }


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to change the font of post titles (not site titles)’ is closed to new replies.