Make Font size larger in part of a paragraph

  • Unknown's avatar

    Hello…I would like to make the font size for the hyperlink FREE SHIPPING (in red) on my home page Sticky post. Can you please tell me how to do that…Many thanks, Andrea

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi, the best way to do this would be to edit that post and add a “style” attribute to the strong tag for that link so that it looks like this.
    <strong style="font-size: 150%;">FREE SHIPPING</strong>
    You can then adjust my 150% example value as desired.

  • Unknown's avatar

    Nice idea and tip. But, what about making a capital letter in every post?
    I’d love to use some of the WP themes with this feature in the pot, but the ones I tried gave me more trouble with other formatting stuff, as contrast between padding/letter colour in the comments. So… (my blog: http://mycrann.wordpress.com

  • Unknown's avatar

    Hi @adhmad58, are you talking about a drop cap?

  • Unknown's avatar

    Yes, thesacredpath. The sort of it you have in Libretto or Book Lite themes, maybe with no first line modification at all, but only a well differenced first letter in every post first line. Have I to do it post by post? Thanks

  • Unknown's avatar

    Hmmm, I’m having trouble with this so I’m going to have to chat with one of our theme developers on it. They are all gone for the evening, so I’ll have to touch base with them tomorrow and I will get back to you.

  • Unknown's avatar

    Hi there, we finally got this sorted out. Give the following CSS a try and see what you think.

    .format-standard .entry-content > p:first-of-type::first-letter {
        color: #cc0000;
        float: left;
        font-size: 7em;
        line-height: 80px;
        margin: 9px 15px 15px 0;
    }

    You can edit the color and the font size as desired. The rest of the items should not need editing, but if you run into problems, do let me know.

    And if you could, since you are using a different theme than discussed in this thread, and since CSS is generally theme specific, can I ask you to create a new thread in the CSS Forum? Many thanks in advance.

  • Unknown's avatar

    Many thanks as well. I’ll do as you say. Hope it works, but anyway your advice is useful for people like me totally newbie in CSS stuff. Thanks+!

  • Unknown's avatar

    You are welcome, and do let me know if you have any problems. One thing I forgot to mention is that this change won’t show up in the CSS Preview until after that page is reloaded, so add the code and then visit your site to see the change.

  • The topic ‘Make Font size larger in part of a paragraph’ is closed to new replies.