-
▼
2013
(302)
-
▼
May
(29)
- How to Put an Amazon Ad Into WordPress
- How to Use Picasa as an Image Host for WordPress
- How to Convert WordPress to MediaWiki
- How to Embed Google Voice on WordPress
- How to Find Your RSS Feed Settings on a WordPress ...
- How to Insert an Ad into Every WordPress Post
- How to Update Automatically in WordPress 3.0
- How to Add AdSense Ads to a WordPress Blog
- How to Use Sessions With WordPress
- How to Set Up a WordPress Website
- How to Host My Wordpress Blog on My Domain
- How to Make a Wordpress Gradient Background
- How to Find WordPress Attachment IDs
- How to Put Ads in the WordPress Footer
- How to Change the WordPress Permalinks Redirect Plug
- How to Set Up a Database for WordPress on My Website
- How to Put CSS Code in a WordPress Widget
- How to Install a Friend Connect Widget on Your Wor...
- How to Make a WordPress Blog a Widget on Facebook
- How to Transfer a Website to WordPress
- How to Embed Flash in WordPress Template
- How to Change the Password for WordPress Users
- A Tutorial on How to Copy Microsoft Charts Graphs...
- How to Create a Static Wordpress Page
- How to Install WordPress on Amazon Cloud
- How to Indent in WordPress
- How to Change your Wordpress Header without gettin...
- How to Move Posts From WordPress 2.0.2 to 2.9
- How to Export Joomla to WordPress
-
▼
May
(29)
adsense
How to Put CSS Code in a WordPress Widget
1. Log in to the WordPress dashboard from the 'wp-admin' directory of your website. Navigate to 'Appearance' and click the 'Widgets' link to load the 'Widgets' screen. You'll see your sidebars and a list of widgets on this page.
2. Click the name of a sidebar to expand it and display its widgets. Expand the widget's options by clicking on its down-pointing arrow.
3. Add HTML tags containing inline CSS code in an options field of the widget. Not all options fields can take HTML or CSS cod. To test this, input some HTML and click 'Save' to see if the HTML stays or gets deleted. You can always add HTML and CSS to the 'Text' widget that comes with every installation of WordPress. Click the blue 'Save' button in the widget's option box to save your changes.
4. Navigate to 'Appearance' and click the 'Editor' link if you couldn''t add CSS code directly in to the widget through its option fields. Locate the 'functions.php' file and click its link. Locate the 'register_sidebar' code and make the line containing 'before_widget' look like this:'before_widget' => '
',Change the 'after_widget' so that it closes the '
' tag you opened:'after_widget' => '
',
5. Load your blog in another tab or window of your Web browser. Right-click the browser screen and select to view the source code. Find the '
' tags surrounding the widget you want to change and take note of its ID attribute. The code will look similar to this:
6. Go back to the WordPress dashboard and navigate to the 'Edit Themes' screen again. Locate the 'style.css' file at the bottom of the screen and click its link. Add your CSS for the widget at the end of the file like this:#archives-3 {property: value;}Replace 'property: value;' with a CSS property-value pair such as 'color: red;'. Update the file when you finish editing.
6:46 AM | Filed Under | 0 Comments
Comments
Popular Posts
-
1. Log in to your Weebly account. 2. Click 'Theme Editor.' 3. Click on the 'Design' tab. 4. Select 'Edit CSS/HTM...
-
1. Sign up for a publisher account at Bidvertiser. Submit basic contact information and confirm your email address to get started. 2. Lo...
-
1. Log in to your WordPress dashboard. 2. Open the 'Appearance' section on the left side of the WordPress dashboard and then cli...
-
Facebook Widget 1. Create a Facebook fan page for your blog, if you don't already have one. You will have to manually share content wi...
-
1. Open your WordPress Dashboard in your preferred browser. It is accessed at the '/wp-admin' location of your site. For example, ...
-
1. Download and install the WordPress for BlackBerry app via BlackBerry App World. Download the version that corresponds with your BlackBe...
-
1. Go to your WordPress blog's administrative control panel. 2. Click the 'Settings' button on the left-side navigation menu...
-
1. Click the 'Add Contact' button on the 'Add New Post' page. This opens the 'Add a Contact Form' page. 2. Click...
-
1. Register an account with Amazon Web Services Cloud. If you have an existing Amazon account, enter your email address in the appropriate...
-
1. Log into your WordPress.com account using your user name and password. 2. Hover your cursor over the 'My Blogs' tab at the to...
Post a Comment