Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33205
    Marcell
    Guest

    I’m using Swifty and I wanna know how I can change the title of a single page and sidebar of a single post. Currently the fonts is Lobster and I wanna change to Open Sans.

    Check those URLs to see the lobster font:

    – On the sidebar: http://www. [redacted] /blog/
    – On single page: http://www. [redacted] /portfolio-de-investimentos/

    #33232
    Jesse Owens
    Keymaster

    Hi Marcell-

    Generally speaking, you’ll change these in your Customize > Fonts > Headings menu.

    If you want to only change the font on those specific pages, you’ll need to use Custom CSS to do so. Since each page and post has a unique class for the <body> tag, you can use the page’s ID to accomplish this, or in the case of your blog page, the blog class.

    Navigate to Customize > Advanced > Custom JS & CSS and use CSS rules similar to this:

    body.blog h2.widget-title, body.page-id-560 h1.entry-title a {
        font-family: 'Open Sans';
    }
    

    This is based on the Page ID for your /portfolio-de-investimentos/ page, which is 560. You can replace 560 with the ID of any other page if you need to use this rule for other pages.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How I can change the font of the titles of a single page and sidebar of posts?’ is closed to new replies.