Meta tags to a site without a Plugin

 Meta tags to a site without a Plugin

Yes, you can add meta tags to a WordPress site without the need to install SEO plugins. I wrote the most important tags that should be present on each site.

How do you add Meta tags without adding SEO to a WordPress site?

Go to the header.php file in the theme of your site and search for the Head tag. Then paste the following code directly below it. All code must be above the head closing tag.

  <head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<link rel="profile" href="https://gmpg.org/xfn/11">
<link rel="pingback" href="https://studyshoot.com/xmlrpc.php">
<meta name="propeller" content="a5f95c0352ecb1c9266f55c508b78d2d">
<meta property="fb:pages" content="738163516603289">

<title><?php the_title(); ?> <?php echo date('Y'); ?> | Studyshoot  </title>
 
<meta name="description" content="<?php echo wp_trim_words( the_excerpt(), 60 , ' ' );?>   ">
<meta name="robots" content="follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large">
<link rel="canonical" href=" <?php the_permalink(); ?> ">
<meta property="og:locale" content=" ar_AR ">
<meta property="og:type" content="article">
<meta property="og:title" content="<?php the_title(); ?> <?php echo date('Y'); ?> ">
<meta property="og:description" content="<?php echo wp_trim_words( the_excerpt(), 60 , ' ' );?>">
<meta property="og:url" content="<?php the_permalink(); ?> ">
<meta property="og:site_name" content="STUDYSHOOT">
<meta property="article:publisher" content="https://www.facebook.com/Studyshoot.Co/">
<meta property="article:author" content="https://www.facebook.com/Studyshoot.Co/">
<meta property="og:updated_time" content=" <?php echo date('Y-m-d H:i:s'); ?> ">
<meta property="fb:app_id" content="2501522096642394">
<?php   
$url = wp_get_attachment_url( get_post_thumbnail_id( ), ' ' ); ?>
 
<meta property="og:image" content="<?php echo $url ?> ">
<meta property="og:image:secure_url" content=" <?php echo $url ?>">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content=" <?php the_title();?> ">
<meta property="og:image:type" content="image/jpeg">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content=" <?php the_title(); ?>">
<meta name="twitter:description" content="<?php echo wp_trim_words( the_excerpt(), 25 , ' ' );?> ">
<meta name="twitter:site" content="@AhmadAl10375548">
<meta name="twitter:creator" content="@ahmadal10375548">
<meta name="twitter:image" content=" <?php echo $url ?>">
 

            <?php wp_head(); ?>        
        
 
 
    </head>