Friday, 24 August 2012

0 Hot to Use Text Widgets in Wordpress

he Text Widget is one of the most commonly used WordPress Widgets that comes with every WordPress installation. It allows users to add text, video, images, custom lists, and more to their WordPress sites.
To use the WordPress Text Widget:
  1. Go to Themes > Widgets in the WordPress Administration Panels.
  2. Open the sidebar, footer, or Theme section to which you wish to add the Text Widget.
  3. Find the Text Widget in the list of Widgets.
  4. Click and drag the Widget to the spot you wish it to appear.
To open and edit the Text Widget:
  1. Click the down arrow to the right of the Text Widget title.
  2. Set the Text Widget Title (optional).
  3. Add the text or HTML code to the box or edit what is currently there.
  4. Choose the option to Automatically add paragraphs to wrap each block of text in an HTML paragraph tag (recommended for text).
  5. Click Save to save the Text Widget.
  6. Click Close to close the Text Widget.
  7. Switch tabs in your browser and preview the results and make changes if necessary.
The Text Widget can hold a variety of HTML, XHTML, and multimedia links and players such as video and object embeds.

Styling the Text Widget

Standard image alignment CSS styles such as alignleft, alignright, and aligncenter apply for images.
To specifically style the various default styles of the WordPress Text Widget, use the following example:
<div id="primary" class="sidebar">
<ul>
 <li id="text-1" class="widget widget_text"><h3 class="widgettitle">Widget Title for First Text Widget</h3>
  <div class="textwidget">Text within the text widget area.</div>
 </li>
 <li id="text-2" class="widget widget_text"><h3 class="widgettitle">Widget Title for Second Text Widget</h3>
  <div class="textwidget"><p>Text for second widget text area.</p></div>
 </li>
</ul>
</div>

0 comments:

Post a Comment

 

Money Blog Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates