Add text above recent posts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6742 Reply

    Tolga

    Hey Ron,

    i am using your asteroid theme and want to add text into recent post section. I want to add a short text above post thumbnails. How can i do this here: http://gute-e-zigarette-kaufen.com/aktuelle-artikel/

    Thanks for answering!

    Best regards,
    Tolga

    #6756

    Ron
    Keymaster

    Here’s a sample function you can use. This is to be added on a child-theme’s functions.php

    add_filter( 'asteroid_excerpt_thumbnail', 'ra_thumbnail_text' );
    
    function ra_thumbnail_text( $image ) {
       $text = 'Sample Text';
       $text = '<div class="featured-image-text">' . $text .'</div>';
       return $text . $image;
    }
    #6761

    Blog

    Sry for my bad explanation. I mean text above the last post (like a static page).

    Thanks for helping!

    Best regards,
    Tolga

    #6768

    Ron
    Keymaster

    Check the available widget areas. One of those is probably positioned where you want your content to appear then you can use a Text Widget to add your content.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Add text above recent posts
Your information: