Topic RSS
There have been a few requests for how to re-order the sections in the sidebar.
This is actually pretty easy.
Here's how…
Open up your "sidebar.php" file for editing.
If you look, you will notice that each section is separated by some asterisk lines like this:
for the beginning and
This is to help you move things around.
Most sections have a beginning and and end. (Although the first section doesn't have a beginning, and the last section doesn't have an end. It's implied.)
So, if you decide you want to have the "widgets" area show up before "categories", you'll simply copy all of this:
<div class="widgetcase">
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<?php endif; ?>
</div>
<?php // ************ Widgets area end ************** ?>
and then move it immediately BEFORE the line:
and then save the file.
Here's another example…
Say you wanted to move the last section (the "specials" box) to be located just below the "Search" box area.
This is what you'd do.
On or around line #45 find the following lines of code:
<?php if ($mkt_options['mkt_infobox'] != null) { ?>
<div class="infobox">
<p><?php echo stripslashes($mkt_options['mkt_infobox']); ?></p>
</div>
<?php } ?>
Move this code (Cut and Paste) up to the line immediately BEFORE this line: (on or around line #10)
and then save the file.
I believe, you just need to move a portion of the top code in sidebar.php.
<h3><?php echo mkt_THEME_SIDEBAR_SEARCH; ?></h3>
<div class="search">
<form style="margin:0;" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input class="postform" type="text" name="s" value="<?php echo mkt_THEME_HEADER_SEARCH_BOX_TEXT; ?>" id="search_input" />
<input class="postimg" type="image" src="<?php bloginfo('template_directory'); ?>/imgs/search-magnify.gif" value="Search" alt="<?php echo mkt_THEME_HEADER_SEARCH_MAGNIFY_ALT; ?>" title="<?php echo mkt_THEME_HEADER_SEARCH_MAGNIFY_ALT; ?>" />
</form>
</div>Just move this down to be after one of the "area end" asterisk lines.
1:50 pm
January 28, 2009
OfflinePerfect, I moved too much code the first time.
Thanks again.
(I've done this on my new project http://www.newyorkt-shirts.net)
Most Users Ever Online: 40
Currently Online:
20 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Member Stats:
Guest Posters: 428
Members: 2252
Moderators: 1
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 2983
Posts: 16042
Newest Members: Allsed, deleteduser, shanm, slidesketch, jimharrison, vmi
Moderators: Market Admin (5051)
Administrators: Market Admin (5051)

Log In
Register
Home




