How to add Homepage meta description in wordpress without plugin


(Sandeep Bhagat) #1

main yoast plugin use krta hu lekin yoast me site descreption add karne ka option nhi aa rha hai to ham manually kaise add akr skte hain ??Screenshot_1


(Jumedeen khan) #2

Iske liye aapko us page me meta description add karna hai jo aapne homepage select kiya hua hai.

  1. First aap blog par ek page banao aur usme apne blog ke homepage ke liye meta data add karo.
  2. uske bad settings >> reading option par jao aur “A static page (select below)” select karo.
  3. Ab homepage ke samne wo page select karo jisme aapne homepage meta data add kiya hai.

All don! enjoy.


(Nilesh Verma) #3

Yoast plugin ka kaun sa version aap use kar rahe hai…??


(Sandeep Bhagat) #4

kya ham direct header me jakar edit nhi kar skte hain ???


(Sandeep Bhagat) #5

sabse latest version


(Nilesh Verma) #6

aap custom description add kar sakte hai,kyunki ajkal yoast bahut sare setting ko remove kar raha hai…!

You can use the is_home() function.

Insert this to your header.php:

<?php if (is_home()) { ?>
 <meta name="description" content="Your description for homepage..." />
<?php } else { ?>
 <meta name="description" content="Description for other pages..." /> 
<?php } ?>

(Sandeep Bhagat) #7
<?php if (is_home()) { ?> <?php } else { ?>

kya main itna use kar skta hu koi problem to nhi hoga ???


(Nilesh Verma) #8

Haa use kar sakte ho…!!


(Sandeep Bhagat) #9

Best solution .

Seo - tools - Bulk editor - change your page description