• Andry

    (@blackstar1991)


    Hi, I making custom template. I use Yoast SEO plugin in this site.

    I got a problem with showing <meta description>
    for page user that creating UM plugin. I see <meta description> for default template (Twenty Twenty-Three), but it does not showing for my template.

    I created different simple template and got the same problem for page-user.php.

    <?php
    get_header();
    ?>
    <main id="user" class="main page_user">
        <h1 class="main_title page_title"><?php _e('User Page', ""); ?></h1>
    </main>
    <?php
    get_footer();

    header.php

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
        <meta charset="utf-8">
        <?php wp_head(); ?>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <meta name="theme-color" content="#1F1D2C">
        <link rel="shortcut icon" href="<?php echo get_template_directory_uri() ?>/images/favicon/favicon.ico" type="image/x-icon">
        <link rel="apple-touch-icon" href="<?php echo get_template_directory_uri() ?>/images/favicon/apple-touch-icon.png">
        <link rel="apple-touch-icon" sizes="72x72" href="<?php echo get_template_directory_uri() ?>/images/favicon/apple-touch-icon-72x72.png">
        <link rel="apple-touch-icon" sizes="114x114" href="<?php echo get_template_directory_uri() ?>/images/favicon/apple-touch-icon-114x114.png">
    </head>
    <body id="body" class="body">
    <header id="header" class="header"></header>

    Can you give any tips how to fix this problem ? Why do on default template I can see <meta description> but on simple template – no?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Does not show for user page’ is closed to new replies.