Tag Info

New answers tagged

0

I am using this solution I created a custom field called banner and placed it in header.php file or header-single.php file. <?php if(get_post_meta(get_the_ID(), 'banner', true)) : ?> <img src="<?php echo get_post_meta(get_the_ID(), 'banner', true); ?>" /> <?php else : ?> <?php the_title(); ?> <?php endif; ?> I think ...


0

I have found that if you upload the image to media first, and then designate the image in the WP theme customization (header section), it creates a duplicate of the image in the MEDIA section. Before saving the image, I add "HEADER" to the image name so that I can differentiate the two images. That way, when I need to swap out easily, I can simply delete the ...



Top 50 recent answers are included