Topic RSS
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
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.
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
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
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.)
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.
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.
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.)
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.
Most Users Ever Online: 40
Currently Online:
22 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
Offline

