Title: Add text to featured ad
Last modified: January 26, 2024

---

# Add text to featured ad

 *  Resolved [boybawang](https://wordpress.org/support/users/boybawang/)
 * (@boybawang)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/add-text-to-featured-ad/)
 * Hello –
 * Is it possible to be able to add some text at the top of a featured ad? For example,
   we just want to be able to add the word **Featured** so featured ads stand out
   a bit more. I was able to accomplish this with CSS in the Grid view, but had 
   to hide it in List view because it didn’t look good.
 * I’m familiar with the CSS on [this page](https://wpadverts.com/doc/featured-ads/),
   but I don’t think any of those selectors would work (or would they?).
 * Thanks

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/add-text-to-featured-ad/#post-17380437)
 * Hi,
 * in the list view you can show the FEATURED word after the title by adding the
   code below in the wp-admin / Appearance / Customize / Additional CSS panel
 *     ```wp-block-code
       .wpa-list-view .wpa-result-item.advert-is-featured .wpa-result-link::after {
         content: '- FEATURED';
       }
       ```
   
 *  Thread Starter [boybawang](https://wordpress.org/support/users/boybawang/)
 * (@boybawang)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/add-text-to-featured-ad/#post-17382015)
 * Is it possible to have it directly above the image?
 *  [nmccainjr](https://wordpress.org/support/users/nmccainjr/)
 * (@nmccainjr)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/add-text-to-featured-ad/#post-17382836)
 * Hello,
 * You can try this. It will put an image on the top left of the ad image.
 * You can put it the function.php file or just make a plugin
 * // Feature List Title
 * add_action( “adverts_list_after_title”, function( $post_id ) {
   $post = get_post(
   $post_id );if( $post->menu_order < 1 ) {return;}echo ‘location of image’;} );
 * // Feature Display Page
 * add_action( “adverts_tpl_single_top”, function( $post_id ) {
   $post = get_post(
   $post_id );if( $post->menu_order < 1 ) {return;}echo ‘location of image’;} );
 * sample image
 * [https://www.screenpresso.com/=wIC4b](https://www.screenpresso.com/=wIC4b)
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/add-text-to-featured-ad/#post-17383871)
 * Hi,
 * you can use the snippet by [@nmccainjr](https://wordpress.org/support/users/nmccainjr/)
   to do that, but to postition the “FEATURED” flag above the image you will need
   it to show a HTML code like this
 *     ```wp-block-code
       add_action( "adverts_list_after_title", function( $post_id ) {
           $post = get_post( $post_id );
           if( $post->menu_order < 1 ) {
               return;
           }
           echo '<span style="position:absolute; top: 5px; right: 5px; background: silver; ">FEATURED</span>';
       } );
       ```
   
 * Note that this will display in both Grid and List modes.
 *  Thread Starter [boybawang](https://wordpress.org/support/users/boybawang/)
 * (@boybawang)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/add-text-to-featured-ad/#post-17384613)
 * Thank you [@gwin](https://wordpress.org/support/users/gwin/) and [@nmccainjr](https://wordpress.org/support/users/nmccainjr/)!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Add text to featured ad’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

## Tags

 * [featured](https://wordpress.org/support/topic-tag/featured/)
 * [styling](https://wordpress.org/support/topic-tag/styling/)

 * 5 replies
 * 3 participants
 * Last reply from: [boybawang](https://wordpress.org/support/users/boybawang/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/add-text-to-featured-ad/#post-17384613)
 * Status: resolved