Categories
Technology

How to Add Anything After Wordpress Title in Backend ?

hi πŸ‘‹ Learn how to add any Html / Text after wordpress editor title field.

Note: This is only for the Classic Editor i am not sure about Gutenberg/Block Editor.

Actually you will learn about how

  • How to add title in Classis editor
  • How to add in Gutenberg Editor

Add this in your function.php file

Here our post type is Tags.

<?php
add_action( 'edit_form_before_permalink' , 'add_text_below_tag_post_title' );
function add_text_below_tag_post_title( ){
    global $post;
    if ( get_post_type($post) === 'tags' ){
        echo "<span style='color: red'>demo alert (THis is the red text)</span>";
    }
}
?>


If it is helpfulΒ and saves your valuable Time ⏱ please show your support πŸ‘‡.

Buy Me A Coffee

Buy me A Coffee, Thank you and canva ( For Beautiful designs ). Thanks for the reading πŸ‘.