Style categories block in query loop
As there is no option to style this block in the theme.json I remove the underline for every link with the follwing code: “styles”: { “link”: { “typography”: { “textDecoration”: “none” } } }
As there is no option to style this block in the theme.json I remove the underline for every link with the follwing code: “styles”: { “link”: { “typography”: { “textDecoration”: “none” } } }
Custom PHP Template in Twenty Twenty-Four
To move the current coupon to the top of the loop, you can use an approach that involves storing the current coupon data temporarily and then outputting it separately before looping through the rest of the coupons. Replace /* Your condition to determine current coupon */ with the condition that identifies the current coupon within … Read more
You can use the shortcodes provided by WooCommerce. To get the whole button with your custom class and AJAX functionalities.. <?php echo do_shortcode(‘[add_to_cart id=”‘ . get_the_ID() . ‘” class=”add_to_cart_button btn btn-outline-primary btn-lg”]’);?> Or, just the URL to use with your custom button. <a href=”<?php echo do_shortcode(‘[add_to_cart_url id=”‘ . get_the_ID() . ‘”]’);?>” class=”add_to_cart_button btn btn-outline-primary btn-lg”>Přidat … Read more
Review the ‘WordPress Theme Hierarchy’ document here: https://developer.wordpress.org/themes/basics/template-hierarchy/ It explains how templates are selected according to function and availability. The chart is helpful.
How to create a template for a post in Query Loop block?
WordPress theme.json: Why doesn’t “contentSize” work
WP Update Messages get cut off during Theme update
Looks like it can be fairly trivially achieved with a hierarchical custom post type and a menu widget in the sidebar. Menus come with current page CSS classes out of the box that can be styled as you require.
Your query there is looking for results from either post type that have the meta value. AFAIK there’s no way to do that in a single query unless you also add the checkbox to the other post type.