Skip to content

Meta description tag #21

@danielmrey

Description

@danielmrey

Hi Simon:

How could we add the Meta description tag?

  • Something like this?
  <meta name="description" content="<?php if ( is_single() ) {
      single_post_title('', true); 
    } else {
      bloginfo('name'); echo " - "; bloginfo('description');
    }
  ?>" />
  • If so in which file you recommend I add this code?

  • Do you like this name: add_description_tag ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions