• Resolved caiusjuliuscaesar

    (@caiusjuliuscaesar)


    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Please post a link to your site.

    Thread Starter caiusjuliuscaesar

    (@caiusjuliuscaesar)

    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

    Moderator Kathryn Presner

    (@zoonini)

    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;
    }
    Moderator Kathryn Presner

    (@zoonini)

    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.

    Thread Starter caiusjuliuscaesar

    (@caiusjuliuscaesar)

    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

    Moderator Kathryn Presner

    (@zoonini)

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

    Moderator Kathryn Presner

    (@zoonini)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How can I reduce the Font Size of Article Captions / Headlines’ is closed to new replies.