Hi,
The theme has an option to enable/disable lightbox for featured images in Theme Panel > Post Settings – http://screencast.com/t/6lG3BiJZ9o but for your content images there is not a general option to enable modal, you will have to enable it for each image – http://screencast.com/t/fLfjfSvc – http://screencast.com/t/N82loiZ9E
We work on this and try to find a solution to force the modal for all post content images and add an option in Theme Panel.
Thanks!
I was using “Responsive Lightbox” plugin but it is also not compatible. Please either realease a compatible template or enable Modal:On for all images in settings. If you had thousands of images, you cannot do it one by one. A soon update of this will be appreciated.
here is the thread with a solution until something the theme provides, it works for me as I also didn’t want to go through hundreds of images. (thanks to historiek)
https://forum.tagdiv.com/topic/modal-image-default-on/
1) Place this code in functions.php
// include theme.js
//
wp_enqueue_script( 'theme-js', get_stylesheet_directory_uri() . '/js/theme.js', array( 'jquery'), NULL, TRUE );
2) Create a theme.js-file with this code:
jQuery( document ).ready( function ($) {
if ( $( document.body ).hasClass( 'single' ) ) {
$( '.td-post-text-content figure > a img' ).addClass( 'td-modal-image' ) ;
}
} ) ;
3) Upload theme.js to the specified folder (i.e.: wp-content/themes/Newspaper/js/)
-
This reply was modified 11 years by
cem.