Hot answers tagged

1 vote

WP HTML Templates - Any way to get bloginfo() or the path to the theme folder?

At the time of writing this isn't possible, twentytwentytwo works around this by registering patterns in a subfolder then using a pattern block. This way they can define patterns in PHP then use the ...
user avatar
  • 52.4k
1 vote

Filter nav menu items HTML tags and wrap inner text with span

Just use link_before in your wp_nav_menu $args and add opening/closing span tags: $args = [ 'link_before' => '<span>', /* Add closing </span> to link_after */ 'link_after' =&...
user avatar
  • 35.5k
1 vote

registering a global template wordpress 6.0

but now in WordPress 6.0, there is no such attribute that exists in Gutenberg to select a new page template. This is not true! WP 6.0 did not remove this functionality. In fact in the block editor it ...
user avatar
  • 52.4k

Only top scored, non community-wiki answers of a minimum length are eligible