WordPress.org

Ready to get started?Download WordPress

Forums

Hiero
[closed] Why header title is changing from bold to thin font? (7 posts)

  1. Rustem09
    Member
    Posted 5 months ago #

    Font of header title on main page is bold, but on another pages it's not bold. What i have to do to leave it bold on all pages?

  2. BitSin
    Member
    Posted 5 months ago #

    I've also the same problem.

  3. webdevilopers
    Member
    Posted 2 months ago #

    I think you are talking about the way the "entry-title" classed <h*> tags are styled.

    If you want them to appear in the same way the appear as links in an overview you will have to change the following files in your editor:

    • content.php
    • content-page.php
    • content-single.php

    And then use the same code for all titles:
    <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    At least you will have to use the same <h*> tag which usually is <h2>, not <h1>.

    Note that adding the <a> anchor tag will mage a single content page link to itself. But that is no problem. Anyway you need the <a rel="bookmark"> to get the same CSS you desired.

  4. youndk
    Member
    Posted 4 days ago #

    i have a similar problem. i want to un-bold the main header title like the rest of the pages.

    i tried the a similar method as stated above but no luck.
    please help. thank you!

  5. Maruti Mohanty
    Member
    Posted 3 days ago #

    Hi All,

    In the home/front page it adds a h1 tag and hence the fonts look bold and in other pages it adds a div and hence does look bold.

    If you like the bold thing add the below in your child theme’s style.css file and it would be bold throughout

    .site-title {
        font-weight: bold;
    }

    but if you like the unbold thing which appears in the rest of the page then add the below

    .site-title {
        font-weight: normal;
    }

    and the front/home page site title will get normal.

    PS: I suggest all to use a child theme to make the changes so that the change remains even after the theme is updated.

    Hope it helps!

    Thanks

  6. youndk
    Member
    Posted 3 days ago #

    worked! cant believe i missed that. i got rid of the original 'font-weight' but didnt think to replace it

    thank you!

  7. Maruti Mohanty
    Member
    Posted 3 days ago #

    Glad it helped :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags