Forums
Home / Theme: Virtue / Disable light box to widget images
(@bharadwajk09)
8 years, 10 months ago
Hi sir, I have add a widget to a page which has listing or directory. In that the images are not visible due to the lightbox code is add in it.
how can i disable the lightbox in the widget added page, the images are visible if i use another theme.
here is the link
(@britner)
Hmm? Can you post a link so I can sees what you mean?
Thanks!
Kadence Themes
http://vijayawada99.com/directory/
In this link the listing has images to it, but they are not visible, if you click on image or readmore or on link you can see images.
here is the code in which the lightbox is hiding the image
<div class=”geodir_thumbnail” style=”” lightbox”=”” );”=””/>
Hmm, I’ll add a fix for this in the next update.
For now you can add this function into your child theme functions.php file:
remove_filter('the_content', 'kadence_addlightboxrel');
Hi sir,
When i added this to child theme functons.php file
remove_filter(‘the_content’, ‘kadence_addlightboxrel’);
function is appearing on top of the page & listing is getting more spaced automatically..
check it in given link
Error is
Warning: Cannot modify header information – headers already sent by
sorry in your child theme does your functions.php file start with
<?php
Then you have the function? All php files need to have the <?php tag when your adding php content.
error problem solved, but images are not visible, rel=”lightbox” is still appears in the code,
Ok, the function is probably being called too early. change it out for this:
add_action('init', 'kt_remove_rel' ); function kt_remove_rel(){ remove_filter('the_content', 'kadence_addlightboxrel'); }
Thanks for you responseve answers, problem solved.