gafonso Posted January 9, 2017 Share Posted January 9, 2017 Hi, I'm using prestashop 1.7 default theme and i want to add images to the sub-menu like in this site: http://www.sparesworld.net/gb/ I added the menu thumbnail and category thumbnail to the top category in the backoffice but it doesn't show on the sub-menu like in that site. Shouldn´t this work? Or do i need to change something in the theme.css? Link to comment Share on other sites More sharing options...
Vilius PromoApranga Posted January 10, 2017 Share Posted January 10, 2017 Try this https://www.prestashop.com/forums/topic/585345-prestashop-17-subcategories-images/ Link to comment Share on other sites More sharing options...
gafonso Posted January 15, 2017 Author Share Posted January 15, 2017 Thanks but what i want is the image showing on the submenu when i hover the top menu. Link to comment Share on other sites More sharing options...
NemoPS Posted January 16, 2017 Share Posted January 16, 2017 Writing a tut on this soon Link to comment Share on other sites More sharing options...
gafonso Posted January 16, 2017 Author Share Posted January 16, 2017 Writing a tut on this soon Looking forward to it! Thanks! Link to comment Share on other sites More sharing options...
NemoPS Posted January 18, 2017 Share Posted January 18, 2017 Herehttp://nemops.com/adding-images-top-menu-prestashop-17/#.WH9VLPnaeUk 2 1 Link to comment Share on other sites More sharing options...
Alex555 Posted May 16, 2017 Share Posted May 16, 2017 Thank you!!! Cool!!! Link to comment Share on other sites More sharing options...
killerkhan Posted August 3, 2017 Share Posted August 3, 2017 Hello Nemo, Your tutorial is perfect and this works. But my requirement is something else. I want to show the sub-category image in the menu. Something like this site http://jdm-expo.com/ Can you explain me the steps how can i fetch the menu thumbnails of the sub-category. Waiting for your reply. Thanks, Link to comment Share on other sites More sharing options...
saeyo Posted October 30, 2017 Share Posted October 30, 2017 Hi all, I would like to do exactly that @killerkhan, did you find a solution? Link to comment Share on other sites More sharing options...
NemoPS Posted November 1, 2017 Share Posted November 1, 2017 I will have a look and see if I can come up with a tut about it too Link to comment Share on other sites More sharing options...
Presta_lover Posted March 2, 2020 Share Posted March 2, 2020 Hi there, I have the solution: {$int = intval(preg_replace('/[^0-9]+/', '', $node.url), 10)} <img src="/c/{$int}-category_default/{$node.label}.jpg" style="width:25px"> with this, you will generate image category close to <a> or <span> or whatever you need. 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