Exploring The Internet

Exploring the web – Growing my online experience




How to Add a Top Sidebar to a Cutline Theme?

January 27th, 2013 · No Comments · Blogging Tips, How to, WordPress Themes, WordPress Tips



This site is using Cutline-1.4-3ColumnRight. I have already made many customizations to this theme. As you may already notice, I’ve added a top sidebar to my existing sidebars. The following steps describe how I’ve accomplished this task.

  • First I opened functions.php with my Dreamweaver editor (if you don’t have Dreamweaver editor, using others), then I found this line
    register_sidebars(2)
    I changed the above code to be the following code, see the differences in red:
    register_sidebars(3)
  • Second I opened sidebar.php with Dreamweaver and saved this file as t_sidebar.php (it doesn’t matter whatever name it was saved). Then I found these lines
    <div id="sidebar">
    <ul class="sidebar_list">
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(1)) : ?>

    I changed the above code to be the following code, see the differences in red:
    <div id="t_sidebar">
    <ul class="t_sidebar_list">
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(3)) : ?>
  • Third I opened index.php, page.php, single.php, search.php, archive.php, archives.php files and scroll each file all the way down to find these lines
    <?php include (TEMPLATEPATH . '/sidebar.php'); ?>
    <?php include (TEMPLATEPATH . '/r_sidebar.php'); ?>

    I then added the third line to the above code, see the red line below:
    <?php include (TEMPLATEPATH . '/sidebar.php'); ?>
    <?php include (TEMPLATEPATH . '/r_sidebar.php'); ?>
    <?php include (TEMPLATEPATH . '/t_sidebar.php'); ?>

    I then saved all these files.
  • Finally I opened this file style.css and styled the t_sidebar the way I liked.

Check it out at the top right corner! What do you think? Would you like to add a top sidebar to your Cutline theme blog? Tell us why or why not in our comment section.
 
HEALTHY EATING - PLR NICHE WEBSITE WITH INTEGRATED STORE FOR SALE

$37.99
End Date: Tuesday Jun-27-2017 5:33:02 PDT
Buy It Now for only: $37.99
Buy It Now | Add to watch list

Black Mouth Cur Dog Website
$1,250.00 (0 Bids)
End Date: Tuesday Jun-27-2017 5:34:00 PDT
Buy It Now for only: $2,500.00
Buy It Now | Bid now | Add to watch list

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace

Tags: ··

No Comments so far ↓

There are no comments yet...Be the first to voice your opinion by filling out the form below.

Leave a Comment

Your e-mail address will not be published. Required fields are marked *

Comment moderation is in use. Please do not submit your comment twice.

*






Custom Search