How can error pages be customized

I believe your problem stems from the upload process itself. If so, you do not need to customize an error message. Instead, you need to update your upload settings, and/or publish your file size limits to your community. This article describes what causes that error, and how to address it. Good luck!

How to add a template – so that i can choose a different menu for some pages

You can add a new template with a different header. <?php /* Template Name: CustomPageT1 */ ?> <?php //different header for different menu get_header(‘header_name’); ?> <div id=”primary” class=”content-area”> <main id=”main” class=”site-main” role=”main”> <?php // Start the loop. while ( have_posts() ) : the_post(); // Include the page content template. get_template_part( ‘template-parts/content’, ‘page’ ); // If … Read more

Woocommerce – Remove cart button depending product (post) status

Finally find my solution after a few day. In case someone try to do the same function test_expired_product(){ $id = get_the_ID(); $post_status = get_post_status($id); $terms= array(‘cursus-annuel’); if ($post_status === ‘expired’ || $post_status === ‘canceled’) { //echo $id; // working //echo $post_status; // working add_filter(‘woocommerce_is_purchasable’, ‘__return_false’); add_action( ‘woocommerce_single_product_summary’, ‘expired_product_message’, 20 ); return; } if( has_term( $terms, … Read more