Skip to main content

Questions tagged [wp-head]

Uses do_action() Calls 'wp_head' hook.

1 vote
0 answers
95 views

I am using Wordpress in headless mode and write articles using Gutenberg, for convenience. I am also using third-party plugins that I need to embed on the page and for this I use the wp_head() ...
fpdev's user avatar
  • 11
0 votes
0 answers
55 views

I'm a newbie in wordpress, I have made a site. All works well, except for this: when I try to share my homepage in social the preview was strange only a name call HOME and a "[" in the ...
eSportPro's user avatar
0 votes
1 answer
86 views

I use WordPress i have a problem on I have inspected my site and there are 2 meta tags <meta name='robots' content='index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' /&...
Binzalai's user avatar
0 votes
0 answers
153 views

I've just build my first block using the @wordpress/create-block package. Everything is working as expected however I need to access the attributes on save and place a script containing a JSON schema ...
Walrus's user avatar
  • 141
2 votes
1 answer
1k views

I'm getting used to the new Gutenberg system and want to add some lines in the section. I peeked inside the header.html file of the default Gutenberg theme, inserted some code, but it's not showing ...
Marc P's user avatar
  • 545
1 vote
1 answer
807 views

I have questions about executing add_action() in a Wordpress plugin. I was attempting to insert into the tag via the plugin i wrote. I had this (which never ran, btw) function tt_add_GA4_header() { ...
extensa5620's user avatar
0 votes
1 answer
2k views

I am looking to do some on-page SEO, wherein I want to limit the length of Title, Description, and more in my HTML meta tags. Is there anyway I can access metatags already present in wp_head, and ...
Amit Bajar's user avatar
1 vote
2 answers
275 views

I have two versions of the simplest function that hooked to the wp_head action. One is working, andother one is not. Can someone explain? // Works ! function custom_description() { ?> ...
Taras Parashchuk's user avatar
0 votes
1 answer
110 views

I'm trying to inject a style.css script into my front-page.php. None of the styles load. In the tutorials, when you inspect page source, all the CSS should be there, but it simply shows the wp_head() ...
Shawn Esquivel's user avatar
-1 votes
1 answer
56 views

I am writing this because I am confused about whether it is possible to read the head tags when I'm in admin. Searching for queries like "reading wordpress" return how to add code to ...
tearswep's user avatar
0 votes
1 answer
284 views

I think this question should have an easy answer for any developer but maybe I am wrong. As much as I think, I can not understand why this snippet does not work to add a css style to the head ...
xaifu's user avatar
  • 31
3 votes
0 answers
212 views

I'm a beginner in WP development, so maybe I'm missing something obvious. Is there a way to prevent wp_head from outputting self-closing tags? Here are two example lines taken from my website: <...
Kerans's user avatar
  • 31
1 vote
0 answers
110 views

I am looking to create a plugin which will allow me to update content within the wp_head function. I have the below code which is fine in allowing me to add new content during the wp_head load event; &...
Kieran Headley's user avatar
0 votes
1 answer
62 views

How to replace the existing metatag using the backend to insure a thumbnail image gets fetched when we share on social media? function theme_a_header_metadata() { global $post; $image = \...
user avatar
0 votes
1 answer
115 views

I am creating a WordPress Plugin. I have already added some pages. But I want to add custom CSS to that pages in the <head>. I am trying: add_action( 'wp_head', 'DisHeaderAssets'); But nothing ...
Devanarayanan's user avatar

15 30 50 per page
1
2 3 4 5
16