admin管理员组

文章数量:1122832

I am using twenty seventeen word press theme. The home page is set to static page and page layout is set to one column. I want to increase the font size of the page title for static front page(or home page) but not able to do so. I changed the code as below which changes the title for all other menus items and I want the same font size for the front page also.

body.page:not(.twentyseventeen-front-page) .entry-title  {
    color: #222;
    font-size: 18px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

I checked the css and other files but not able to find where exactly to change. Will be very helpful if someone can point out where to change. Thanks,

I am using twenty seventeen word press theme. The home page is set to static page and page layout is set to one column. I want to increase the font size of the page title for static front page(or home page) but not able to do so. I changed the code as below which changes the title for all other menus items and I want the same font size for the front page also.

body.page:not(.twentyseventeen-front-page) .entry-title  {
    color: #222;
    font-size: 18px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

I checked the css and other files but not able to find where exactly to change. Will be very helpful if someone can point out where to change. Thanks,

Share Improve this question edited May 7, 2024 at 16:56 amit asked May 6, 2024 at 10:48 amitamit 12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The :not(.twentyseventeen-front-page) in the existing rule you have means don't apply this CSS rule to the front page. So if you do want to apply the CSS rule to the front page, remove the :not() so that the CSS rule looks like:

body.page .entry-title {
  color: #222;
  font-size: 18px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

本文标签: