The sidebar of a website, although traditionally used for navigation links and ads, can be used for any data you would like to place there. The most common use in Wordpress is to display other posts links, archives, and categories for further navigation into the site. You can, however, use the sidebar to put anything you want, known as meta data. This requires no special function calls and needs only basic HTML and CSS. The instructions below demonstrate how you can add this meta data to your WordPress sidebar.

  1. Log into your Wordpress Admin dashboard.
  2. Once logged into the Admin area, look to the left hand menu and click on the Appearance menu category. This will reveal several sub-options. Click on the Editor option to continue.
  3. You are now on the main Editor page for all php and css files for your theme. Look to the menu on the right-hand side, scroll down until you see the Sidebar option. Click on that link to open the sidebar.php file in the editor.
    select editor menu option
  4. This opens the sidebar.php file into an on-screen editor where you can edit the code and add anything you want. As stated, you can add anything you want, so with this example, we will simply add a paragraph about the site, which in this case is about dog training.
    <p class="aboutsite">Love training dogs? Want to learn about training dogs? Join us! This site is dedicated to those who love dogs and dog training.</p>
    add meta code to file
  5. After entering your data, click on the Update File button to save the new changes to the sidebar.php file. The new information will now display on the site. Below is a sample of how the code above displays. The example shows two samples of the code. The top one is exactly as it is in the code block above and the bottom sample is with some CSS added to customize how it appears.
    meta data display sample
Continued Education in Course 204: Customizing your Wordpress Sidebar
You are viewing Section 3: Adding Meta Data to your WordPress sidebar
Section 2: How to add navigation to your sidebar in WordPress
Section 4: How to add images and image links to your WordPress sidebar
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!