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
Reorganize Categories in sidebar
January 26, 2011
8:30 am
Member
Forum Posts: 38
Member Since:
December 9, 2010
Offline

Hello,
I can't figure out how to change the order of my categories in the sidebar.

change to

Thank you for your assistance

Sharon

January 26, 2011
2:22 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline

By default, it organizes them alphabetically.

You can reorder them in a few ways, by editing on or around line #27 in your "sidebar.php" file.

<?php wp_list_categories('child_of='.$mkt_options['product_cat'].'&orderby=name&order=asc&show_count=0&use_desc_for_title=0&title_li=&exclude=&depth=1&hide_empty=0'); ?>

You'll modify where it says "orderby=name".

The options you can choose from are listed under "orderby" on this page:

http://codex.wordpress.org/Tem…..categories

 

There's no way to do a custom order with the theme settings.

January 27, 2011
8:57 am
Member
Forum Posts: 38
Member Since:
December 9, 2010
Offline

Thank you.  Everything is in the order I want.

I inserted "slug" for name and numbered my category slugs in the order I wanted them.

Check that off my list!  Smile

January 27, 2011
1:41 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline

Good job.

January 27, 2011
4:28 pm
Member
Forum Posts: 38
Member Since:
December 9, 2010
Offline

Well, so much for checking that off my list!

Although I accomplished the sidebar reorganization what is also needed is the "Featured Categories" to be listed in the same order as the sidebar. 

So….here we go again….

I went to the Category Template but did not see anything that could be changed (like the sidebar code).

Can you send in the right direction and tell me what to look for?

Thank you

January 27, 2011
7:51 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline

For that area (and the others that show category images), you'll find the line of code you need to modify in the "functions.php" file.

 

On or around line #1384 you'll find the line:

$productCats = get_categories('hide_empty=0&child_of='.$cat);

 

And a simliar one 3 lines down on (or around) line #1387

$productCats = get_categories('hide_empty=0&parent='.$cat); 

 

Just enter the same "orderby" value you want the categories to sort by into those two lines.  Go ahead and put it right before "hide_empty".  Be sure to follow the "orderby=slug" with an ampersand ("&") so that the parameters are separated correctly.

 

then

January 28, 2011
5:36 am
Member
Forum Posts: 38
Member Since:
December 9, 2010
Offline

Worked like a charm!  Thank you

January 28, 2011
1:28 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline

Glad to help.

February 5, 2011
9:16 am
Member
Forum Posts: 6
Member Since:
February 4, 2011
Offline

Sorry if this is a stoopid statement. I am new here and don't quite have the hang of it all yet. But… I am just wondering if it is not easier simply to make use of the WP Menu function under Appearance? That way you can split up your categories however you like and organise the links in any order you choose.

Using this functionality won't eventually break Markettheme will it? It's my intention to remove the standard out-the-box links in the sidebar altogether and replace them with these Menu type links but maybe I am missing something really obvious? WOuld doing that break the theme in some way?

 

(BTW thank you, thank you, thank you. I love Markettheme. I have tried a few storefront solutions over the last few days and most of them made me feel like I was missing half my brain. The simplicity of Markettheme is a thing of beauty.)Smile

February 7, 2011
12:17 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline
10

Honestly, I haven't played around much with the Wordpress menu function, so I'm not exactly sure what it will do.  My guess, is there there will still need to be some code changing in the Market code anyway — if nothing more, than to just remove the menu code from showing.  

Since the Wordpress menu simply works with pages, it will probably work fine.

February 7, 2011
12:23 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline
11

Ok, I just tried adding a custom menu, and it works — however you have to add the "custom menu" widget.  That'll put it on the sidebar.

 

For positioning, you'll probably want the menu part up higher, so you'll want to edit the "sidebar.php" file.  In that file, you'll see the "widgets area" down near the bottom.  Copy all the way down up to, but not including the last </div> tag. 

Then, move that code up and paste it near the top just above :

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

Then, you'll probably want to remove the "quick pages" area section.  (The whole area between "Quick Pages Menu area begin" and "Quick Pages Menu area end").  This will remove the Market Theme built-in pages area.

February 7, 2011
1:24 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline
12

samison said:

(BTW thank you, thank you, thank you. I love Markettheme. I have tried a few storefront solutions over the last few days and most of them made me feel like I was missing half my brain. The simplicity of Markettheme is a thing of beauty.)Smile


What a great comment! 

Would you be ok with us adding this to our upcoming testimonials area? 

(it wouldn't include your email or anything like that.  Just the comment and your username.)

 

Let me know.

February 7, 2011
2:56 pm
Member
Forum Posts: 6
Member Since:
February 4, 2011
Offline
13

Well, I meant every word so please go right ahead. :)

February 8, 2011
12:37 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline
14

Great! 

Thanks.

Forum Timezone: UTC 0

Most Users Ever Online: 40

Currently Online:
22 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.