[email protected] Posted November 26, 2016 Share Posted November 26, 2016 On my site I have 30 main categories that are accessed by clicking on a separate image link for each. The page that then loads up shows the subcategories in a main category as text links: Subcategories.tiff Is there a way to either add an image or completely replace these text links with image links? Thank you Link to comment Share on other sites More sharing options...
NemoPS Posted November 26, 2016 Share Posted November 26, 2016 Can you share the site's url? Custom or default theme? Link to comment Share on other sites More sharing options...
[email protected] Posted November 27, 2016 Author Share Posted November 27, 2016 (edited) It's a custom theme with a lot of changes: http://www.mugbarista.com Thank you Edited November 27, 2016 by [email protected] (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted November 28, 2016 Share Posted November 28, 2016 As far as I can see you are using imges already, in the shop by category page. Do you mean something else? Link to comment Share on other sites More sharing options...
[email protected] Posted November 28, 2016 Author Share Posted November 28, 2016 As far as I can see you are using imges already, in the shop by category page. Do you mean something else? That is correct, I am using images for my main categories such as Abstract, Animals, Artwork, etc.. What I am talking about are the subcategories that appear once you click on one of my category image buttons. On the page that loads after clicking a main category button there are text links. For example if you click on the Animals button, 12 different types of animals load up as text links including Bears, Birds, Cats, etc.. It's these text links I'd like to display as image links similar to the main categories that contain these text links. Thank you. Link to comment Share on other sites More sharing options...
[email protected] Posted November 28, 2016 Author Share Posted November 28, 2016 (edited) Also one other questiion to anyone who visits my site, does it load at a satisfactory speed? Thank you. Edited November 28, 2016 by [email protected] (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted November 30, 2016 Share Posted November 30, 2016 For that, you need to edit category.tpl, the div with id="subcategories", you have some h5s there. You can use the standard code {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} Link to comment Share on other sites More sharing options...
[email protected] Posted November 30, 2016 Author Share Posted November 30, 2016 I greatly appreciate your reply. However, I am not clear on exactly how to do this. Can you please explain further? Thank you For that, you need to edit category.tpl, the div with id="subcategories", you have some h5s there. You can use the standard code {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} Link to comment Share on other sites More sharing options...
NemoPS Posted December 2, 2016 Share Posted December 2, 2016 You can put there in the subcategories 'foreach' in category.tpl Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now