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 ...
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' =&...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
themes × 2844theme-development × 695
plugins × 403
customization × 229
css × 213
php × 210
child-theme × 186
functions × 140
menus × 111
templates × 110
theme-customizer × 90
theme-options × 88
widgets × 76
images × 69
posts × 67
multisite × 67
plugin-development × 66
pages × 66
custom-post-types × 64
javascript × 54
updates × 52
categories × 47
errors × 46
options × 41
loop × 40