admin css - How to change text size on category pages

admin2025-01-07  3

I am trying to change the font size on all pages/posts on the site I'm managing for my employer. I know how to change the font size in "posts" but how do I change font size in "category" pages?

I have tried looking into appearance editor to change the font size.

I looked online at different codes to insert but it is unclear where to place the code or what follow on steps must be done.

This is one of the pages I am trying to change:

I am trying to change the font size on all pages/posts on the site I'm managing for my employer. I know how to change the font size in "posts" but how do I change font size in "category" pages?

I have tried looking into appearance editor to change the font size.

I looked online at different codes to insert but it is unclear where to place the code or what follow on steps must be done.

This is one of the pages I am trying to change:

Share Improve this question edited Jun 7, 2017 at 18:16 Max Yudin 6,3782 gold badges26 silver badges36 bronze badges asked Jun 7, 2017 at 18:05 Chrystal SchlenkerChrystal Schlenker 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

You can change admin css with this code to functions.php:

add_action('admin_head', 'my_custom_fonts');

function my_custom_fonts() {
  echo '<style>
    body.taxonomy-category .row-title,body.taxonomy-category input{
      font-family: "Lucida Grande";
      font-size: 16px;
      color: #f04040;
    } 
  </style>';
}

Edit this code as you need.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736254950a246.html

最新回复(0)