Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • crjordan Friend
    #154613

    I was curious if its possible to insert a small image next to a category title that is linked. I’m including an image of the portion of my site that I am referring too. Thanks for any feedback/help.

    8970


    1. Category-Image
    Saguaros Moderator
    #356752

    you open the file: templatesja_oreshtmlcom_contentcategoryblogblog_default.php

    and remove the following code:
    at line 30:
    [PHP]
    <?php if ($this->params->get(‘show_description_image’) && $this->category->image) : ?>
    <img src=”<?php echo $this->baseurl . $cparams->get(‘image_path’) . ‘/’ . $this->category->image; ?>” class=”image_<?php echo $this->category->image_position; ?>” />
    <?php endif; ?>
    [/PHP]

    and find the followingcode:
    [PHP]
    <span><?php echo $this->escape($this->params->get(‘page_title’)); ?></span>
    [/PHP]
    replace:
    [PHP]
    <span><?php echo $this->escape($this->params->get(‘page_title’)); ?></span>
    <?php if ($this->params->get(‘show_description_image’) && $this->category->image) : ?>
    <img src=”<?php echo $this->baseurl .”/”. $cparams->get(‘image_path’) . ‘/’ . $this->category->image; ?>” class=”image_<?php echo $this->category->image_position; ?>” />
    <?php endif; ?>
    [/PHP]

    in the category’s configuration, you choose a image in there

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 14 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum