How to Remove Feature Image from Post ? Code in the description.
-
I am using the theme Dynamic News Lite, I have tried many way to remove feature image from appearing in the post, I only need it as a thumbnail for my recent post.
I try to check my single.php to remove some code, try to hide it with css but nothing seems to work, I did find this code in my template-tags, if you guys can take a look at it I would appreciate it.
// Display Site Title add_action( 'dynamicnews_site_title', 'dynamicnews_display_site_title' ); function dynamicnews_display_site_title() { ?> <a href="<?php echo esc_url(home_url('/')); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <h1 class="site-title"><?php bloginfo('name'); ?></h1> </a> <?php } // Display Custom Header if ( ! function_exists( 'dynamicnews_display_custom_header' ) ): function dynamicnews_display_custom_header() { // Check if page is displayed and featured header image is used if( is_page() && has_post_thumbnail() ) : ?> <div id="custom-header" class="featured-image-header"> <?php the_post_thumbnail('custom_header_image'); ?> </div> <?php // Check if there is a custom header image elseif( get_header_image() ) : ?> <div id="custom-header"> <img src="<?php echo get_header_image(); ?>" /> </div> <?php endif; } endif; // Display Postmeta Data if ( ! function_exists( 'dynamicnews_display_postmeta' ) ): function dynamicnews_display_postmeta() { // Get Theme Options from Database $theme_options = dynamicnews_theme_options(); // Display Date unless user has deactivated it via settings if ( isset($theme_options['meta_date']) and $theme_options['meta_date'] == true ) : ?> <span class="meta-date sep"> <?php printf(__('<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date published updated" datetime="%3$s">%4$s</time></a>', 'dynamicnewslite'), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); ?> </span> <?php endif;
many thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to Remove Feature Image from Post ? Code in the description.’ is closed to new replies.