tad
El Presidente
Just Getting Started
Member Likes (0)
How can I link an image to a category? Something similar to FrameMarket for the products, but do the same for categories? Essentially have a grid layout for the categories and then link to the grid category for the products like it does in FrameMarket.

Responses (4)
WPMU DEV Fanatic (joined October 2009) Likes (0)
Hi Dana,
That would require some customization and to help with that, you can take a look at the following file in the MarketPress folder for more extensive customization instructions:
/marketpress/marketpress-includes/themes/Themeing_MarketPress.txt
Basically, you can create MarketPress templates such as mp-category.php and include those templates in your theme's folder. MarketPress will use those templates to render those respective pages (ie. category listings). You could include images in those templates however you like.
There's also the following thread where there's some awesome instructions given on achieving that through the use of another plugin. Looks like all the necessary code's provided too! :)
http://premium.wpmudev.org/forums/topic/category-images
Cheers,
David
Member (joined April 2011) Likes (0)
I have tried this and still get an error. Am not sure where to put the second part of the code that was supplied in the link you shared. I posted a question there and haven't gotten a response. Do you have any ideas?
Thanks David!
Ach Crivvens (joined August 2011) Likes (0)
@Dana I have updated the other thread with something that works but here is the solution again:
1) Install the Wordpress plugin "Category Icons Lite"
2) Update this plugin. File: caticonslite.php line 173.
Add the code:
taxonomy' => 'product_category', to the array.It should now look like this:
$array = wp_dropdown_categories(array('taxonomy' => 'product_category', 'hide_empty' => 0, 'name' => 'categoryiconliteid', 'echo' => 0, 'orderby' => 'name', 'selected' => $category_id, 'hierarchical' => true, 'show_option_none' => __('None')));3) Now what I did was to create a custom store front template you do this buy creating a file call mp_store.php in YOUR theme directory. For more info see: Themeing_MarketPress.txt in plugins/marketpress/marketpress-includes/themes
In your mp_store.php add this code (probably within your #content div):
Ive even added some CSS so it goes grid-like.
PLEASE NOTE: I have used
get_bloginfo('url') . '/shop/products/category/'as my stores url as I changed this in the MP settings you will probably want:get_bloginfo('url') . '/store/products/category/'Ach Crivvens (joined August 2011) Likes (0)
Forgot to attch the placeholder image which you put in your themes image folder (check the url is correct in code though)
Become a member