Jump to content

Image not available


Recommended Posts

Let's use the Kurouto skin to demonstrate. In that skin's template file content.category.php, lines 12-17 is the HTML code that shows the sub-cat's image and link. Cubecart will automatically show a "No Image" if that (sub)category does not have its own image. Make this edit:

Was:
  <div class="subcategory">
    <a href="{$subcat.url}" title="{$subcat.cat_name}">
      <img src="{$subcat.cat_image}" alt="{$subcat.cat_name}" />
    </a>
    <a href="{$subcat.url}" title="{$subcat.cat_name}">{$subcat.cat_name}</a>
  </div>
 
Now:
  <div class="subcategory" style="height:30px;">{* Without image, can reduce height of this div *}
    <a href="{$subcat.url}" title="{$subcat.cat_name}">
{*    <img src="{$subcat.cat_image}" alt="{$subcat.cat_name}" />  *}
    </a>
    <a href="{$subcat.url}" title="{$subcat.cat_name}">{$subcat.cat_name}</a>
  </div>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...