• Resolved nomadninja

    (@nomadninja)


    I recently installed the xMag theme on my blog and was wondering how do I change the font size of my posts?

    The default size within the single post page is a little small.

    Also how would I go about customizing the excerpt length on the blog main page? Right now with the medium thumbnail I get about 1.5 lines of text, but I would like to add more.

    Is both of this done in the editor? If so, can you point me in the right direction in terms of which file and what piece of code I should edit?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello nomadninja,

    1. Change text size on single post size.

    => Put below css code into Additional CSS textarea (Dashboard >> Apperance >> Customize) then click on Save & Publish button.
    => If there is no Additional CSS option then put below css code into your current theme’s style.css file located at wp-content/themes/your_current_theme/ folder.

    
    /*Single post page text size*/
    .entry-content p {
       font-size: 18px;
    }
    

    2. Change excerpt lenght.

    => Put below css code into your current theme’s functions.php file located at wp-content/themes/your_current_theme/ folder.

    function custom_excerpt_length( $length ) {
     return 60;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    Note : All Changes you done in any file of theme are gone when you update theme. So prefer Child Theme.

    Hope this will helps you.

    Hi,
    To change text size only on single post or page you can add Custom CSS using Theme Customizer(since WordPress 4.7):

    .single .entry-content, .page .entry-content {
    font-size: 18px
    }
    Thread Starter nomadninja

    (@nomadninja)

    Thanks!

    • This reply was modified 7 years, 3 months ago by nomadninja.

    hi @nomadninja,
    we’ll update the theme with a option to insert a custom value for the excerpt length.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customizing Theme Question’ is closed to new replies.