July 10, 2017 at 19:55
#166954
Moderator
Hi
Just use this function and this will be added automatically immediately after the header ends in full-width mode
Example
COPY CODE
function blog_single_full_image_above_post()
{
if (is_single()) {
if (has_post_thumbnail()) {
echo '<div class="fullwidth-image-before-content">';
echo the_post_thumbnail('full');
echo '</div>';
}
}
}
The function needs to be pasted in wp-content/themes/kleo-child/functions.php
NOTE: Child theme needs to be installed and activated.
Also, i implemented this in the theme and in next theme version this option will be found under wp-admin -> theme options -> blog.
That’s all
Cheers
R.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution