yousam Posted April 22, 2010 Share Posted April 22, 2010 Hi guys,I'm new in prestashop design. I'm facing a problem like i want to show all categories pictures of small size in home page. But I couldn't understand how to do it?I think I need to reduce pixels of category pictures from ../global.css file.But culdn't understand where to change the code?Please help me to sort out my problem.... Link to comment Share on other sites More sharing options...
rocky Posted April 22, 2010 Share Posted April 22, 2010 You should not use HTML or CSS to resize the images. You should go to Preferences > Images to change the size of the images. The subcategory images use the 'medium' image size. You can simply edit that size, or create a new size specifically for your homepage category images, then change the link code from 'medium' to the name of the size you created. Once you've finished modifying the image sizes, click "Regenerate thumbnail images" to recreate the images in the new sizes. Link to comment Share on other sites More sharing options...
yousam Posted April 23, 2010 Author Share Posted April 23, 2010 Thanks for reply Brother.But now I'm facing a trouble like that category pictures are showing on my home page in a column view.I just want to see all the categories picures will show as [4*4] or [8*8] or any matrix view in my home page.For that purpose now my home page shows as a column which I do not want. So please guyzzz help me out of this problem.Thanks in advance for the issue.... Link to comment Share on other sites More sharing options...
paradate Posted April 30, 2010 Share Posted April 30, 2010 I did it usint the home editor in the module section.I added pictures to my categories in the middle of the homepage. Link to comment Share on other sites More sharing options...
yousam Posted May 17, 2010 Author Share Posted May 17, 2010 Hi Guys,I have solved the issue.Please keep a look on my post..http://www.prestashop.com/forums/viewthread/54042/integration/solved_how_to_show_category_pictures_to_ur_home_page/Thanks you all. Link to comment Share on other sites More sharing options...
venkatesh Posted December 31, 2011 Share Posted December 31, 2011 HI yousam, How did you display category images? which version u r using? I used the following code to display category image. but i cant get it. can you post how you done this? {foreach from=$blockCategTree.children item=child name=blockCategTree} {if $smarty.foreach.blockCategTree.last} {include file="$branche_tpl_path" node=$child last='true'} {else} {include file="$branche_tpl_path" node=$child} {/if} <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" /> 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