5

The main issue in your code is with these two attributes which use the exact same selector (the first span element in your block content): checkListItemOne: { type: 'string', source: 'html', selector: 'span' // same as below }, checkListItemTwo: { type: 'string', source: 'html', selector: 'span' // same as above } Which means the ...


1

This is apparently Gutenberg bug 24895. The problem being that Hello: is a well-formed URI scheme, so WP shouldn't rely on new URL() alone to recognize a pasted link. new URL('Hello: world');


1

I want the URLs of the nav-items to be replaced with # You can use the nav_menu_link_attributes hook to set the custom href value like so: add_filter( 'nav_menu_link_attributes', function ( $atts, $item, $args ) { if ( 'menu-categorias' === $args->theme_location && 'category' === $item->object ) { $atts['href'] = '#' . ...


1

You can try something like this: add_action( 'woocommerce_before_add_to_cart_form', 'add_list_completed_orders' ); function add_list_completed_orders() { // get orders $orders = wc_get_orders ( array ( 'status' => array( 'wc-completed' ), 'type' => 'shop_order', 'limit' => -...


1

You could "borrow" the html form from the example and include this in your template - either directly of via a filter like wp_footer: <form method="GET" action="/javascript/search-highlight/" onsubmit="myHilitor.apply(hilite.value); return false;"> <fieldset> <legend>Highlight Words</legend> <...


1

First things first, change the name of the functions - you have them the same as the tutorial - as a rule, always make them something unique just to reduce the possibility of conflicts. So instead of wpb_confirm_leaving() you should maybe change it to something like jkkr_confirm_leaving. Just make sure you change it everywhere. But really that's just me ...


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