WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How can I reduce the Font Size of Article Captions / Headlines (8 posts)

  1. caiusjuliuscaesar
    Member
    Posted 2 years ago #

    Hi all,

    I woul dlike to reduce the font size of the articles'/ blog's captions.
    I tried to edit the file /var/www/wp-content/themes/twentyeleven/style.css

    .entry-header .comments-link a {
            background: #eee url(images/comment-bubble.png) no-repeat;
            color: #666;
            font-size: 10px;
    ,
    but this did not change anything.

    Maybe, thatr is the wrong style-definition.

    Where is the right definition / place in order to reduce the headline's font?

    Regards

    CJC

  2. Please post a link to your site.

  3. caiusjuliuscaesar
    Member
    Posted 2 years ago #

    I am sorry, my site is only internal. It is as it comes downloading wordpress from wordpress.org: twenty eleven theme and no changes to it.

    Regards and thanks,

    CJC

  4. If you're just looking to change the style of the post headings, this is what the code looks like, which you can see in your browser by viewing the source code.

    <h2 class="entry-title">Heading</h2>

    Warning: do not edit the Twenty Eleven theme files directly, otherwise all your work will be overwritten the next time you update the theme. Create a child theme instead. Here is one tutorial - there are many more out there if you Google.

    To make tweaks:

    h2.entry-title {
       font-size: whatever;
    }
  5. p.s. I'm not sure if you are really looking to change the style of image captions or not - a caption is the small bit of text that goes below an image to describe it. It's an optional and not that commonly used.

  6. caiusjuliuscaesar
    Member
    Posted 2 years ago #

    Thank you zoonini. I really mean the headline of an article (and not an image's caption). I mixed the words.

    I followed the tutorial,
    - created the childtheme's directory
    - edited a file called style.css with

    import url("../twentyeleven/style.css");
    
    h2.entry-title {
       font-size: 10;
    }

    ~ edited a new function.php file, but ...

    How can I hook my new style.css into the other twenty-eleven stuff?

    Regards
    CJC

  7. For detailed help with child themes, please start a new thread. Thanks.

  8. p.s.

    h2.entry-title {
       font-size: 10;
    }

    You need a unit with your size.

    example:

    font-size: 10px;

    or whatever other unit you choose.

Topic Closed

This topic has been closed to new replies.

About this Topic