R
R
Ranger_N2018-03-12 09:43:43
PHP
Ranger_N, 2018-03-12 09:43:43

How to generate meta tags from a template?

Help me figure out how to form a description in the header.php file on a site without a management system.
It is necessary that where the description is written, it remains as it is written, and the pages on which it is not inserted with the template:
"h1 - The online store offers to buy products at competitive prices."
Link to code from header.php file: https://codeshare.io/5OlWp0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anastasia, 2018-03-12
@haanastasia

on line 134.

<?}else{?>
<title>#DisplayTitle#</title>
<meta name="description" content="h1 - Интернет-магазин предлагает купить продукцию по выгодным ценам."/>
<?}?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question