How to add custom attributes to wordpress block theme
How to add custom attributes to wordpress block theme
How to add custom attributes to wordpress block theme
After a lot of reading, debugging and testing I did not manage it to modify the default core/navigation block as I wanted. The interactivity API still keeps getting in the way. So my solution was to enable the classic menu and make it a custom dynamic block: My theme’s functions.php: function my_theme_register_menus() { register_nav_menus( array( … Read more
Modify HTMl on header.php on Block Theme like Twenty Twenty Three?
Block editor layout not present in post editor
get_theme_mode & set_theme_mode in block editor
Use PHP variable defined in parent file in included pattern (WordPress Block Theme)
Rather than messing with it yourself, this is a great scenario in which to consider offloading it to a third party (and also using modern formats like WebP). Something like PicPerf.io or other optimization plugins out there.
The issue with your code is that the testCatalog function is being called on every page load due to its hook into the init action. Since init runs on every WordPress request (both front-end and admin), your function is uploading the image each time a page is loaded. This is why you see the same … Read more
Custom loop menu is not working
YES (finally).. The specific answer for this template I found in a WP forum was a bit misleading, which took me hours lost searching for what they meant. So: The section for personalized CSS styles is located directly in “Twenty Twenty-Four” Theme Editor, just go: Appearance (themes); Editor (site-editor); Left Menu -> Styles (wp_global_styles); Up … Read more