K2 Image Display when an image is not present

Home Forums Joomla Templates Hoxa – Multipurpose Responsive Joomla Template K2 Image Display when an image is not present

This topic contains 3 replies, has 2 voices, and was last updated by  carolinewhittle 1 year, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10214

    carolinewhittle
    Participant

    Unknow

    Hello

    I have setup a news blog, and for some k2 items I don’t require an image.

    However, when the page is displayed in Google or Safari, a text link is displayed together with a file placeholder where the ‘file is missing’.

    The file isn’t missing per se, I don’t wish to apply an image, therefore don’t want to display anything, ie no text link to a missing image symbol.

    with many thanks for your assistance.
    Caroline

    Details to follow.

    #10215

    carolinewhittle
    Participant

    Unknow
    This reply has been marked as private.
    #10234

    CTHthemes
    Keymaster

    Please try this: http://prntscr.com/c9fcas

    
    <?php if($this->item->imageXLarge == '') : ?>
    <div class="image_frame"><a href="<?php echo $this->item->link; ?>"><img src="<?php echo $this->item->imageXLarge;//JURI::root(true).$postLink;?>" alt="<?php echo $this->item->title;?>" /></a></div>
    <?php endif;?>
    
    #10616

    carolinewhittle
    Participant

    Unknow

    belated thanks for this update.
    regards
    Caroine

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

The topic ‘K2 Image Display when an image is not present’ is closed to new replies.