Okay
  Public Ticket #1741605
Meta tag for site description
Closed

Comments

  •  3
    nsb_supp started the conversation

    Hi Support,

    Can please advice how to add the meta property og:description & og:image for the Kalium Theme without installing additional plugins (e.g. yoast-seo)?

    Currently, only found meta tags below are generated by the theme:

       <meta property="og:type" content="article"/>
       <meta property="og:title" content="<page title>"/>
       <meta property="og:url" content="<site url>"/>
       <meta property="og:site_name" content="<site name"/>

    Thanks.

  •  414
    Arlind replied

    Hi,

    Our theme generates these meta tags by default based on page title and excerpt:


    (view large image)

    As title it is used the current post title.

    As description it is used the current post excerpt.

    As site name is the blog info "name"

    As image it is used the current post featured image.

    If you want different data here, then you can use Yoast which will allow you to have custom content on these fields.

    Kind regards,
    Arlind


      Documentation        Follow on Envato         Like on Facebook

  •  3
    nsb_supp replied

    Hi Arlind,

    Noted with thanks.  I will added the following to the child theme's functions.php the activate the excerpt for page post-type to updated the og:description.

    add_post_type_support( 'page', 'excerpt' );

    Thanks for the advise ;-)

  •  414
    Arlind replied

    Thats great! I am glad that this helped you figure out how to manage og:meta tags.

    Kind regards,
    Arlind


      Documentation        Follow on Envato         Like on Facebook