WordPress.org

Ready to get started?Download WordPress

Forums

How to format text widget (4 posts)

  1. Whitmore
    Member
    Posted 2 years ago #

    This would seem like an obvious question, but I'm not seeing any really serious info. I want to be able to apply html/css markup to a text widget. I've tried, but WP (3.3.2) seems to blow most of it off. For example I put this in a text widget:

    <br />
    <br />
    <h1>Hello World<h1>
    <p>
    Lot of text. Blah, blah, blah. . . .
    </p>

    and it seems to recognize only the two line breaks. It blows off the <h1>. Is there a good tutorial somewhere? I see all sorts of what must be text widgets with wildly elaborate custom formatting.

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    these are the tutorials I like to use:

    http://www.w3schools.com/html/default.asp
    http://www.w3schools.com/css/default.asp

    you could start all styles with .textwidget to make them more specific.

    example:
    .textwidget h1 { ... }

    and make sure to close your h1 html tag properly:

    <br />
    <br />
    <h1>Hello World</h1>
    <p>
    Lot of text. Blah, blah, blah. . . .
    </p>
  3. pajackson60
    Member
    Posted 1 year ago #

    Everything I have read on this subject tells what to do to change the format of "a" text widget, but it doesn't say where. As far as I can tell, there isn't anywhere to view or edit the html code in the widget. When I view the html code for that page, the sidebar widgets are not in the code.
    I really need help putting a line break at the end of each sentence in the text widget. For example:
    This is the first line
    This is the second line
    and so on...
    My website is .
    Thank you in advance!

  4. pajackson60
    Member
    Posted 1 year ago #

    the web site is http://tmua.org.previewdns.com/. accidentally hyperlinked "thank you in advance"!

Topic Closed

This topic has been closed to new replies.

About this Topic