Changing the HTML of notices in WooCommerce [closed]

After talking with some of the WooCommerce people on Slack, I realized that the problem here is probably this pattern, in frontend/cart.js – due to the fact, that my store uses the AJAX functionality that WooCommerce provides. var show_notice = function( html_element, $target ) { if ( ! $target ) { $target = $( ‘.woocommerce-notices-wrapper:first’ … Read more

Display WordPress archive template page in 3 columns and not 1 column [closed]

Without knowing the structure, class names, ids etc. it would be impossible to give you an answer that would help. But lets say that the structure is ul>li*6 <ul> <li>…</li> <li>…</li> <li>…</li> <li>…</li> <li>…</li> <li>…</li> </ul> The must basic of css that would create such a design would be ul { display: grid; grid-template-columns: repeat(3, … Read more

Random home page at each refresh between array of page IDs

Not tested well but you can try this. add_action( ‘template_redirect’, ‘my_homepage_redirect’ ); function my_homepage_redirect() { if ( is_home() || is_front_page() ){ $page = get_posts( [ ‘post_type’ => ‘page’, ‘posts_per_page’ => 1, ‘orderby’ => ‘rand’, ‘fields’ => ‘ids’ ] ); if ( empty( $page ) ){ return; } // update the front page id option according … Read more