WordPress.org

Ready to get started?Download WordPress

Forums

Font-Size problem (12 posts)

  1. europinione
    Member
    Posted 1 year ago #

    Hi, I'm trying anything to change the font-size in my articles. But I can't figure out the right way to do it. It's quite strange, cause I've change the title size with no troubles.

    The site is http://www.europinione.it

    This is the css
    [no need to post CSS - it's all visible on your site ]

  2. core-basic
    Blocked
    Posted 1 year ago #

    #content .post .post-content p {
      margin: 0 0 25px;
      font-size: 1em;
    }

    Be sure to use a child theme to accomplish this.
    http://codex.wordpress.org/Child_Themes

    The easiest way would be to create a directory with the name of your theme like theme-child

    Then inside create a style.css that looks like

    /*
    Theme Name:     Theme Name
    Theme URI:      http://example.com/
    Description:    Child theme for the Theme Name theme
    Author:         Your name here
    Author URI:     http://example.com/about/
    Template:       themename
    Version:        0.1.0
    */
    
    @import url("../theme/style.css");
    
    #content .post .post-content p {
      margin: 0 0 25px;
      font-size: 1em;
    }

    Alter everything to match your theme name obviously.

  3. europinione
    Member
    Posted 1 year ago #

    Thanks for the help, i've follow the instructions but nothing happens... I think I've made a mistake in the code style...

    /*
    Theme Name:     Dardania
    Theme URI:      http://www.europinione.it/
    Description:    Child theme for the Dardania theme
    Author:         Andrea Viscardi
    Author URI:     http://www.europinione.it/
    Template:       Dardania
    Version:        0.1.0
    */
    
    @import url("../dardania/css/lite.css");
    
    #content .post .post-content p {
      margin: 0 0 25px;
      font-size: 1em;
    }
  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Try this - change these lines:

    Template:       dardania
    Version:        0.1.0
    */
    
    @import url("../dardania/style.css");

    Note that some themes may not be compatible with child themes - so you may want to check with the developer of yours -

    http://themeforest.net/item/dardania-news-theme/3548972

  5. europinione
    Member
    Posted 1 year ago #

    Well, the name of the theme was wrong :P I think this is not the best solution, here what happened

    http://www.europinione.it/

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Also, if you change the @import line in the dashboard > editor, you must then switch to a different theme and then back to the child for it to be recognized.

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Also, if you are just wanting to make CSS changes- you can do that using Custom CSS - some themes have it built in or add via a plugin such as Custom CSS Manager.

  8. europinione
    Member
    Posted 1 year ago #

    Yes I finally succeded in the activation of the child theme, but, ehm... I think is not the right way for the theme... there are alternative solutions?

  9. core-basic
    Blocked
    Posted 1 year ago #

    If it were me i would just tweak the child theme css until I thought it looked right, but to each their own. The theme may have an editor in the admin panel. I stick to child themes so I can't be of much more help. Sorry.

  10. europinione
    Member
    Posted 1 year ago #

    Fixed! Thanks a lot ;)

  11. core-basic
    Blocked
    Posted 1 year ago #

    What did you end up doing?

  12. europinione
    Member
    Posted 1 year ago #

    I modify the article.php function adding puting <?php the_content();?>
    between <h4> and </h4> .

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags