• Dear developer,

    First thanks for the awesome free theme!
    But I have a little suggestion and I hope that you are willing to implement it in the coming update.
    I am developing this website and I want the featured images to be opened in a lightbox. So I edited the code to display the thumbnails to the following

    // Display Post Thumbnail on single posts
    function dynamicnews_display_thumbnail_single() {
    
    	// Get Theme Options from Database
    	$theme_options = dynamicnews_theme_options();
    
    	// Display Post Thumbnail if activated
    	if ( isset($theme_options['post_thumbnails_single']) and $theme_options['post_thumbnails_single'] == true ) : ?>
    
    		<a href="<?php echo (wp_get_attachment_image_src((get_post_thumbnail_id()),'thumbnail-size', true)[0]) ?>" rel="testtest">
    			<?php the_post_thumbnail(); ?>
    		</a> 
    
    <?php
    	endif;
    
    }

    And that is working fine if I add it in the main theme but when the theme has an update it will be overridden. So I tried to declare the function in my child theme but I can not override the function because it is not ‘pluggable’ like this:

    if ( ! function_exists( 'theme_special_nav' ) ) {
    see here for more info.

    If you could make all the functions pluggable so it is possible to override the functions in a child theme I would be very grateful.

    Thanks in advance!

    Wilmar

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wilmardo

    (@wilmardo)

    The website has been released in the meantime. It can be found here right now.
    Does anyone know if there is a change log of this theme somewhere? I googled it but no avail, I want to watch if my suggestion got implemented before I update my theme again.

    Wilmardo

    In the root dir of the theme is a changelog.txt file but I don’t see any changes to the featured-image

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured images in lightbox’ is closed to new replies.