• Resolved WordPress Apprentice

    (@wordpress-apprentice)


    Hi,

    I’m having a problem implementing a meta description in the homepage of my website https://www.directorsoi.com. I have a customize meta description that i have created for the homepage of my website, but whenever I implement it using the code below it also automatically change the meta description on the other pages.

    The code below is what I have implemented in the <head> section: (Bear in mind I temporarily removed it for now)

    <meta name="description" content="This is your description" />
    
    <?php if ( is_home() ) { ?>
    <meta name="description" content="This is your description" />
    <?php } ?>

    Is there something wrong in the code? Please help me.

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Meta Description Issue’ is closed to new replies.