WordPress.org

Forums

[resolved] Widget Title Formatting (9 posts)

  1. Gart
    Member
    Posted 4 years ago #

    I know how to format the text body of a widget. Is there a way I can format the widget title (font, size, colour,etc.)?

  2. alchymyth
    Forum Moderator
    Posted 4 years ago #

    try to style h3.widgettitle { ... }

    if this is not working, please post a link to your site.

  3. Gart
    Member
    Posted 4 years ago #

    Hi Alchymyth,

    Thanks. My knowledge is quite basic, so I'll appreciate as much details as possible.

    my site: http://www.stopthewarondrugs.org

  4. alchymyth
    Forum Moderator
    Posted 4 years ago #

    in style.css, at the moment, the widget title is styled with:

    .sidebar h3 {
      padding: 0;
      margin: 1em 0 0;
      border-bottom: 1px solid #ccc;
    }

    add font specific formatting to this;

    http://www.w3schools.com/css/css_font.asp

    or, to be even more specific, try and add a new style with font specific formats:

    .sidebar h3.widgettitle {
      font-size: 13px;
      color: green;
    }
  5. Gart
    Member
    Posted 4 years ago #

    Hi Alchymyth,

    Thanks again, I've followed your advice and it works for all widgets ('tags', 'links', 'posts', etc.) except 'text'. What can I do?

  6. alchymyth
    Forum Moderator
    Posted 4 years ago #

    try:

    h3.widgettitle, .sidebar h3.widgettitle {
    font-size: 16px;
      color: green;
    }

    the 'text' widgets are for some reason not within the .sidebar div

  7. Gart
    Member
    Posted 4 years ago #

    Many thanks, spot on!

  8. 4silverplates
    Member
    Posted 3 years ago #

    hi,

    what is the code and where should it be placed in css.style for
    text widget to italicize? i've tried dozens of different ways and
    placements.

    many, many thanks!

  9. MyChoiceAZ
    Member
    Posted 3 years ago #

    How do I change the title text size of just one text widget?

    web page is http://www.mychoiceaz.com and the title in question is the home middle right text widget.

    The three text widget titles on the bottom are all great (defult) but the Home Middle Right is tiny.

    Help

Topic Closed

This topic has been closed to new replies.

About this Topic