Search Posts

Manually Add Signature Ads After Post Content in WordPress

This post will guide you to Add a Signature or Advertisement after your blog post content in WordPress.

Kindly follow the below steps to Add your Signature or Advertisement in your blog post.

Step 1: Login to your cPanel admin area

Step 2: Go to the Files section and select File Manager

Step 3: Next, Go to your WordPress files Select wp-content

Step 4: Next, select Themes in this section

Step 5: Next, Select your currently installed theme

Step 6: Find out functions.php file and edit with the code Edit.

Step 7: End of the line Add the following code in that functions.php file

//Add signature or ad after post content

function wpb_after_post_content($content){
if(is_single()){
$content .='here your signature';
}
return $content;
}
add_filter("the_content","wpb_after_post_content" );

Now you can visit your website to see your signature ad at the post end.

Leave a Reply

Your email address will not be published. Required fields are marked *

Social media & sharing icons powered by UltimatelySocial

Enjoy this blog? Please spread the word :)