Replies: 0
Is it possible to add HTML above every blog post’s featured image (both past and future posts)? That is under /wordpress/blog-post-title/ and not on this page: /wordpress/blog/. I tried adding my code in single.php:
<?php
/**
* The Template for displaying all single posts.
*
* @package aThemes
*/
get_header();
?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<!-- Test 1 -->
<?php echo "Content here appears above post title"; ?>
<?php while ( have_posts() ) : the_post(); ?>
<!-- Test 2 -->
<?php echo "Content here also appears above post title"; ?>
<?php get_template_part( 'content', 'single' ); ?>
<!-- Test 3 -->
<?php echo "Content here appears at end of post"; ?>
<?php if ( get_theme_mod( 'author_bio' ) != 1 ) : ?>
As indicated by the comments, I have added some code but none of the code goes above the featured image. Is there another theme file where I should be adding the code?