Prevent executing query for wp_global_styles
Prevent executing query for wp_global_styles
Prevent executing query for wp_global_styles
In block themes patterns won’t have access to context such as id it seems: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-patterns One has to create a custom block to get post id and use useSelect hook to get post Id like so: import { useSelect } from “@wordpress/data”; … inside Edit block function: const postId = useSelect(select => select(‘core/editor’).getCurrentPostId()); then, postId … Read more
Update Content for a Custom Block Toolbar Button
Adding my solution so far, though it doesn’t seem ideal to me. Also the .entry-content parent doesn’t get applied in the editor. /* trick to have root paragraphs left-aligned “in the central wrapper” without extra dom */ .entry-content > p{ padding-right:calc(1264px – 830px); max-width:1264px; box-sizing:border-box; } @media only screen and (max-width:1300px){ .entry-content > p{ padding-right:calc(100% … Read more
Is it possible to use a html page for homepage only, in WordPress Full Site Editing?
Block Theme Template parts – Why saving a part updates the other ones?
Full site editor, hard-coded IDs in query blocks, and staging/dev servers
How to add custom menu to block theme?
Many blocks allow you to add a class and/or an ID. If you select the block in the Editor, then look on the right side of the screen under the Advanced tab, it will often show “HTML Anchor” (which is an ID) and “Additional CSS class(es)”. If the effect is something you plan to repeat, … Read more
How to move the customizations done in the Editor to my child theme?