Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

How to disable the dummy image when no image is selected?
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: How to disable the dummy image when no image is selected?

How to disable the dummy image when no image is selected? 7 years, 10 months ago #28883

Hello,
it is possible to deactivate the grey dummy image when no image in article edit mode is selected?
Pls, check the attachment...
The topic has been locked.

Re: How to disable the dummy image when no image is selected? 7 years, 10 months ago #28898

  • thuyltt
Dear chris7612,
Please change code in files:
templates\sj_vicmagz\html\com_k2\templates\grid\category_item.php
templates\sj_vicmagz\html\com_k2\templates\grid\item.php
templates\sj_vicmagz\html\com_k2\templates\list\category_item.php
templates\sj_vicmagz\html\com_k2\templates\list\item.php
<?php
//Create placeholder items images
$src = $this->item->image;
if (!empty( $src)) {
$thumb_img = '<img src="'.$src.'" alt="'.$this->item->title.'" />';
} else if ($is_placehold) {
$thumb_img = yt_placehold($placehold_size['article'],$this->item->title);
}
echo $thumb_img;
?>
EDIT TO=>
<?php
//Create placeholder items images
$src = $this->item->image;
if (!empty( $src)) {
$thumb_img = '<img src="'.$src.'" alt="'.$this->item->title.'" />';
} else if ($is_placehold) {
$thumb_img = '';
}
echo $thumb_img;
?>

Thanks.
The topic has been locked.

Re: How to disable the dummy image when no image is selected? 7 years, 10 months ago #28903

Great, thanks! This works...

But another problem is.....
I need the article images to show it on frontpage in the k2 content modul.
But i dont need it in the article.

How to solve this?
Attachments:
The topic has been locked.

Re: How to disable the dummy image when no image is selected? 7 years, 10 months ago #28912

  • thuyltt
Dear chris7612,
You can config this in admin: Component-> K2 com-> Categories:
prntscr.com/c4bvjk
prntscr.com/c4bvok

Thanks.
The topic has been locked.

Re: How to disable the dummy image when no image is selected? 7 years, 10 months ago #28913

Hello thuyltt,

sorry but this did not work!

In the article i have disabled ALL views with "image". > no result.
In the category i have disabled ALL views with "image". > no result.
I have cleaned all caches (Browser and Template). > no result.

EDIT: Which Joomla and K2 version did you are using? I think your version is outdated?!
(Backend looks like an old version)
Attachments:
Last Edit: 7 years, 10 months ago by chris7612.
The topic has been locked.

Re: How to disable the dummy image when no image is selected? 7 years, 10 months ago #28920

  • thuyltt
Dear chris7612,
Please add this code in bottom of file: templates\sj_vicmagz\css\your_css.css
.itemView .itemImageBlock {
display:none;
}

Thanks.
The topic has been locked.
  • Page:
  • 1
  • 2
Time to create page: 0.28 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes