Castors (pack of 4)

Twin-wheel castors – 40mm

Screws into desk foot – replacing adjustable foot.

<?php
/**
 * Hide Product Description Tab until Clicked
 */
add_action('wp', 'hide_product_description_tab');
function hide_product_description_tab() {
    global $post;
    
    // Check if the current post is a product
    if (is_product()) {
        // Hide the product description tab by adding a CSS class to its wrapper
        add_filter('woocommerce_product_tabs', 'hide_product_description_tab_content', 98);
        
        function hide_product_description_tab_content($tabs) {
            // Add CSS class to the product description tab wrapper
            $tabs['description']['class'] .= ' hide-by-default';
            
            return $tabs;
        }
    }
}
?>
<style>
    /* CSS to hide the product description tab content by default */
    .hide-by-default .woocommerce-Tabs-panel {
        display: none;
    }
    /* CSS to style the product description tab */
    .woocommerce-Tabs-panel.hide-by-default:before {
        content: "Click to view description";
        display: block;
        text-align: center;
        padding: 10px;
        background-color: #f0f0f0;
        cursor: pointer;
    }
    /* CSS to display the product description tab content when clicked */
    .woocommerce-Tabs-panel:not(.hide-by-default) {
        display: block;
    }
</style>

Availability: 2 in stock

Twin-wheel castors – 40mm

Screws into desk foot – replacing adjustable foot.

Reviews

There are no reviews yet.

Be the first to review “Castors (pack of 4)”

Your email address will not be published. Required fields are marked *

Shopping Basket