Search
 
SCRIPT & CODE EXAMPLE
 

PHP

storefront remove sidebar from product page

// removes sidebar from product page (storefront based theme)
function pk_remove_sidebar_product_pages() {
    if ( is_product() ) {
        remove_action( 'storefront_sidebar', 'storefront_get_sidebar', 10 );
    }
}
add_action( 'get_header', 'pk_remove_sidebar_product_pages' );
Comment

PREVIOUS NEXT
Code Example
Php :: Skip model accessor laravel8 
Php :: laravel dirty words check 
Php :: php assign an array inside a foreach loop 
Php :: php filter_var name 
Php :: how to reverse a string in php 
Php :: Laravel Nested whenLoaded 
Php :: wc php get product id image gellery 
Php :: nginx php-fpm 
Php :: unnamed place placeholders pdo 
Php :: yii2 activeform adding field css class 
Php :: foreach tableau php 
Php :: close route in laravel 
Php :: twig filter array 
Php :: echo placeholder image if post thumbnail not found 
Php :: add class to row laravel 
Php :: 1 to many relationship in laravel 
Php :: check date is in the last 24 hours? 
Php :: send mail infinityfree phpmailer 
Php :: laravel eloquent with nested 
Php :: laravel return a single dimensional array 
Php :: Method IlluminateDatabaseEloquentCollection 
Php :: php warning array to string conversion 
Php :: How to remove from a multidimensional array all duplicate elements including the original 
Php :: php format phone number with dashes function 
Php :: xdebug phpstorm 
Php :: Add to cart, link to product page 
Php :: livewire calendar for laravel 9 
Php :: find the next 7 date data in laravel eloquent 
Php :: Laravel 9 Multiple File Upload Tutorial 
Php :: php crud generator 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =