I lost the description metatag

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

Status: resolved

Tagged: 

  • This topic has 3 replies, 3 voices, and was last updated 9 mo, 2 w by  Jacob.
Viewing 3 reply threads
  • Author
    Posts
    • #17567

      marcorroma
      Member

      Hello,
      I can’t change the homepage description.
      The Yoast plugin says to directly edit the page (homepage page) description, but the page cannot insert the description in wordpress.
      So I’m losing the description metatag of my homepage right now.
      How can I do?
      Thanks

    • #17888

      elpastiche
      Member

      I have the same problem. Any response?

    • #17889

      marcorroma
      Member

      @elpastiche
      Hi, I have entered this code in functions.php to insert the description on the homepage. It works for me.

      function add_custom_meta_des(){
      if( is_home() || is_front_page() ){
      $meta_des = "YOUR DESCRIPTION HERE";
      echo '<meta name="description" content="' . $meta_des . '" />'; } }
      add_action( 'wp_head', 'add_custom_meta_des', 4 );
    • #17892

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

Viewing 3 reply threads
  • You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

© Copyright 2020 by wpthms.com. All Rights Reserved.