modify head element (add meta, link, etc.) in Twentytwentytwo theme

[ad_1]

Hi @schroedingers-cat – if you have the child-theme you should be able to make a copy of header.php from the main twentytwentytwo theme and put in your child theme. Then you’d be able to make adjustments.

Hi @jordesign – thank you for your reply! My problem is: I can’t find any header.php in the twentytwentytwo theme. All I can find, resembling something like headers are…

  • in “inc/patterns/”
    A lot of patterns, for the header, e.g. “header-large-dark.php” (the one I am using), but I cannot find any mention of the meta Info that usually goes into the <head> element.
  • in “parts” I see a “header.html” – as to what this does, I am pretty clueless

I wonder where they have hidden the meta info that goes into the header.

I found a satisfying answer, how to manually add <head> meta without Plugins:
https://mediendesign-quer.com/wordpress-meta-tags-ohne-plugin/

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer