Set standard image on top of blog post (but NOT featured)
-
Hi all!
I need some help… I want to set a standard signature below every blog post (not page) ánd a standard image on top, which sort of says ‘dear readers,’ in a fancy script. Adding the signature already worked, but I can’t figure out how to add the image on top… I don’t want it to be my featured image (obviously) and it has to appear below the page title, but above the blog text. Can you guys help me??
BTW, the signature was added using this code in my functions.php:
// Add Signature Image after single post add_filter('the_content','add_signature', 1); function add_signature($text) { global $post; if(($post->post_type == 'post')) $text .= '<div class="signature"><img src="https://www.lievechaos.nl/wp/wp-content/uploads/2019/03/Liefs-xx_Tekengebied-1.jpg"></div>'; return $text; }
Thanks so much in advance!!
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Set standard image on top of blog post (but NOT featured)’ is closed to new replies.