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

Background IMages (CSS) disappearing after filter
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Background IMages (CSS) disappearing after filter

Background IMages (CSS) disappearing after filter 5 years ago #39821

On our development site (just accessable via host file change) we have the following issue: When clicking a filter, the images of K2, embedded in the k2 template override not as img but as CSS background-image disappear.

Here is the k2 category_item.php code:
<div class="itemImage" style="background-image: url(<?php echo $this->item->image; ?>)"><a class="projectlink" href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
<img class="cattrans" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>"/>
</a></div>

After filtering, the css attribute background-image is empty in the frontend.
Without filtering, everything works normal in K2.
Any advise?

Re: Background IMages (CSS) disappearing after filter 5 years ago #39835

Dear spotteron,
Please you go here www.smartaddons.com/support/tickets, submit a ticket.
Best Regards
  • Page:
  • 1
Time to create page: 0.20 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