A A A

Please consider registering
guest

Log In Register

Login form protected by Login LockDown.


Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
How to Move Sidebar Items Up or Down in Their Order
October 6, 2010
12:12 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline

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:

<?php // ************ "Quick" Pages Menu area begin ************** ?>

for the beginning and

<?php // ************ "Quick" Pages Menu area end ************** ?>

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:

<?php // ************ Widges area begin ************** ?>
  <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:

<?php // ************ Product categories area begin ************** ?>

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:

  <h3> </h3>
<?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)

<?php // ************ "Quick" Pages Menu area begin ************** ?>

and then save the file.

January 19, 2011
4:04 am
Member
Forum Posts: 84
Member Since:
January 28, 2009
Offline

I just tried cut and pasting the search bar from the top to underneath the products menu. It didnt work! It kept the search bar level with the featured categories and put in a menu above this.

Is there an easy fix for this or can you just re-order the items below?

January 19, 2011
10:09 am
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline

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.

January 28, 2011
1:50 pm
Member
Forum Posts: 84
Member Since:
January 28, 2009
Offline

Perfect, I moved too much code the first time.

 

Thanks again.

(I've done this on my new project http://www.newyorkt-shirts.net)

Forum Timezone: UTC 0

Most Users Ever Online: 40

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

icy1: 2371

wreed06: 175

laurie390: 168

StitchTek Services, LLC: 144

boutiqueelliette: 130

yiorgos: 127

Member Stats:

Guest Posters: 428

Members: 2252

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 4

Topics: 2983

Posts: 16042

Moderators: Market Admin (5051)

Administrators: Market Admin (5051)

Market takes e-commerce to the next level with an easy to use, quick setup platform. Learn more or take the tour.