Hi,
I would like to place an ad banner (a regular image) below the featured image in every post.
Could you help me find out what to put in my child theme function.php file for that?
Cheers
Hey Joakim,
Copy the file wp-content/themes/enfold/includes/loop-index.php to your child theme folder (the file path should be wp-content/themes/enfold-child/includes/loop-index.php). Then open up the copied file and search for
echo "<div class='blog-meta'>";
(should be around line 139). You can add your ad banner code above this code line.
Best regards,
Dude
Hi Dude,
Thanks for your answer.
Your suggestion will place the banner code just above the featured image. I would like it below. Any suggestions? :)
Update: I found a solution.
echo "<div class='entry-content-wrapper clearfix {$post_format}-content'>";
echo '<header class="entry-content-header">';
$content_output = '<div class="entry-content" '.avia_markup_helper(array('context' => 'entry_content','echo'=>false)).'>';
//$content_output .= 'Hello';
$content_output .= $content;
$content_output .= '</div>';
Placed my code in the $content_output variable.
Thanks for your help, Dude!
Cheers,
Joakim
Hi Joakim,
Glad you got it working for you and thank you for sharing! :)
If you need further assistance please let us know.
Best regards,
Victoria