Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #991090

    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

    #991121

    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

    • This reply was modified 6 years, 5 months ago by Dude.
    #991127

    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? :)

    #991129

    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

    #991141

    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

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.