Answer the question
In order to leave comments, you need to log in
Header.php theme file under seo?
Need the right header for a static wordpress site. I can't find where to get seo-optimized header.php? Perhaps someone has a good example of header.php lying around, taking into account all the nuances for seo, which I could optimize for my solution
Answer the question
In order to leave comments, you need to log in
If by header you mean tag <head>
, then you can only add this
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<?php wp_head(); ?>
</head>
wp_head
, the connection of scripts and styles is done on the hook wp_enqueue_scripts
wp_robots
and robots_txt
, the first one prints tags in <head>
, the second one creates a txt file. The sitemap works out of the box and is located at /wp-sitemap.xml
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question