Jump to content

[SOLVED] How do I show 20 category pictures of small size in my home page?


Recommended Posts

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

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

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

  • 3 weeks later...
  • 1 year later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...