Jump to content

Disable category images


MrFalk

Recommended Posts

Do want to remove the entire subcategories section on the category page or just the images? If you're using the default theme, you can go to the Theme Configurator module's configuration page and change "Display subcategories" to "No", then click "Save".

 

If you're using a custom theme that doesn't support that option or you want to remove only the images, you'll need to manually edit category.tpl in your theme's directory. You can {* comment out *} the entire <!-- Subcategories section to the closing </div> or just the following part to remove the images:

						{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}" />
						{else}
							<img class="replace-2x" src="{$img_cat_dir}{$lang_iso}-default-medium_default.jpg" alt="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" />
						{/if}

Note that you'll need to readjust the CSS in category.css inside your theme to make the links look good without the images.

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...