• Hello,
    Where can I put meta tags in theme without plugins (tittle, descriptions, keywords)?
    In the header.php file in the <head> section there is an inscription: “Functions hooked into zakra_action_head action”.

    • This topic was modified 4 years, 7 months ago by korometo.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @korometo,

    Thank you for writing in,

    Can you please let me know where you want to add the meta stages to your site? Please let me know and I will get back to you.

    With Regards,
    Zakra Theme Support

    Thread Starter korometo

    (@korometo)

    Maybe I will ask the question differently: where should I enter the following code in <head> for Zakre theme?

    <meta name="keywords" content="key1, key2,...">
    <meta name="description" content="Description Your page">
    <meta name="author" content="author">

    Hi @korometo,

    Thank you for writing in,

    Actually, we suggest our users to manage all the meta tags from SEO plugins which are available in the WordPress Directory. However, if you want to achieve it via code please create a child theme as suggested in the article here: https://themegrill.com/blog/tutorial-creating-wordpress-child-theme/.

    Once you create a child theme please add the following code in the child theme function.php file:

    <?php
    add_action( 'wp_head', function()  {
        ?>
        <meta name="keywords" content="key1, key2,...">
      <meta name="description" content="Description Your page">
      <meta name="author" content="author">
    <?php
    });

    This method is a little complex where you have to check the conditions and add the author-name since it differs in every pages. So it will be better if you go with the plugins.

    With Regards,
    ThemeGrill Support Team

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Meta tags without plugins’ is closed to new replies.