Hi @madoo211
I am afraid I did not understand your question. Or I do not understand how the featured images for articles are related to the theme header.
If all you see when you open Appearance > Editor, is the menu then I believe you must be using a mobile or small tablet to edit your site? You should still be able to use the menu though! If not, something is broken.
Twenty Twenty-Five is a block theme, so everything, including everything in the header, but also the featured image, is a block. You will not find similar files in a block theme, that you may find in a so called classic theme.
The header is not a PHP file where you will find header meta tags. It is block template part which is an HTML file. The content of the file, the blocks, can be previewed under
Appearance > Editor > Patterns > Template parts
When you open the template part you can make changes to the blocks directly in the editor in WordPress. These changes are only saved locally on your website, in the database, not as files in your theme folder.
This works the same way in all block themes, not only Twenty Twenty-Five. I recommend some tutorials about block themes.
https://learn.ww.wp.xz.cn/lesson/intro-to-the-site-editor/
Thank you for the clarification.
What I meant by the featured image is that I’m having issue displaying the featured image of an article
when I share its link on Facebook and some other platforms.
This issue may require accessing the website’s programming structure and ediring the OpenGraph area.
So I asked how I could access the code.
Thank you very much for the clarification.
It seems you mean that any editing to the code in the template component will change the template in the database.
So the change remains in effect even if the template is changed.
If you don’t want to use a plugin to help with the social images, you would need to use PHP to filter
https://developer.ww.wp.xz.cn/reference/hooks/wp_head/
That is the way to make changes to the <head> in block themes.
It looks like my response did not get through so I am trying again.
The way to change the <head> tag in block themes is to filter it using PHP:
https://developer.ww.wp.xz.cn/reference/hooks/wp_head/
@poena
Thank you dear, for the useful information.
I will try it.