Title: Customizing Theme Question
Last modified: December 27, 2016

---

# Customizing Theme Question

 *  Resolved [nomadninja](https://wordpress.org/support/users/nomadninja/)
 * (@nomadninja)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/customizing-theme-question/)
 * 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)

 *  [saurabh.dhariwal](https://wordpress.org/support/users/saurabhdhariwal/)
 * (@saurabhdhariwal)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/customizing-theme-question/#post-8593012)
 * 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](https://codex.wordpress.org/Child_Themes)**.
 * Hope this will helps you.
    -  This reply was modified 9 years, 5 months ago by [saurabh.dhariwal](https://wordpress.org/support/users/saurabhdhariwal/).
 *  [Fabio Rubioglio](https://wordpress.org/support/users/fabiorubioglio/)
 * (@fabiorubioglio)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/customizing-theme-question/#post-8593110)
 * 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](https://wordpress.org/support/users/nomadninja/)
 * (@nomadninja)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/customizing-theme-question/#post-8595606)
 * Thanks!
    -  This reply was modified 9 years, 5 months ago by [nomadninja](https://wordpress.org/support/users/nomadninja/).
 *  [Fabio Rubioglio](https://wordpress.org/support/users/fabiorubioglio/)
 * (@fabiorubioglio)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/customizing-theme-question/#post-8621833)
 * hi [@nomadninja](https://wordpress.org/support/users/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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/xmag/1.3.5/screenshot.png)
 * Xmag
 * [Support Threads](https://wordpress.org/support/theme/xmag/)
 * [Active Topics](https://wordpress.org/support/theme/xmag/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/xmag/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/xmag/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Fabio Rubioglio](https://wordpress.org/support/users/fabiorubioglio/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/customizing-theme-question/#post-8621833)
 * Status: resolved