for product page, you can put in functions.php
function remove_storefront_sidebar() {
if ( is_product() ) {
remove_action( 'storefront_sidebar', 'storefront_get_sidebar', 10 );
}
}
add_action( 'get_header', 'remove_storefront_sidebar' );
It works with latest woocommerce 2.5.2
Also CSS is needed:
.single-product.right-sidebar .content-area {
float: none;
margin-right: 0;
width: 100%;
}
Related Posts:
- Why are my widgets not saving when being added to a sidebar?
- I want to run different WordPress websites under the same database
- Changing $before_widget for certain widgets
- Display a specific dynamic sidebar widgets on a specific page
- adding multiple sidebars on pages
- Inject widgets from one sidebar into another with PHP
- Displaying a widget in sidebar only when no other widgets rendered?
- How to create my own sidebar in Twenty Eleven child theme?
- Do not show one specific widget on one specific page
- Adding Sidebars in WordPress Theme
- Interpretation and explanation of register sidebar
- Adding an extra sidebar to your theme
- Widgets not showing on sidebars
- How do I use the default style for widget?
- sidebar in 2020 theme as a widget
- Can I modify woocommerce themes that are under the GNU General Public License, version 2
- Mystique theme: widgets on sidebar falling under the page content
- WooCommerce My Account Shortcode
- Hide prices and checkout functionality in woocommerce
- Adding admin-ajax.php to the frontend. Good or bad idea?
- what the best way to include images from the template’s images folder?
- How do I add support to my theme for custom menus?
- How do I white label my self-hosted site created by wordpress?
- How do I add a new string to a .po or .pot file?
- Free/Open-Source Theme Frameworks as an Alternate to Thesis? [closed]
- can require “themefolder/includes/widgets.php” in “themefolder/functions.php” yet widgets.php doesn’t run
- Multisite: setting theme and options when a new blog is created
- Where do I find the functions triggered within a hook?
- How to use scss in wordpress theme?
- How to get Ajax into a theme – without writing a plugin?
- How to attach region identifier to a pretty url?
- WordPress as Backend, Laravel Front End: How to connect Routes?
- How to get themes from wordpress.com per SVN? [closed]
- Edit raw HTML of the landing page
- single.php change into a modal popup bootstrap wordpress
- remove rel=next on home page but not others
- get_header(‘header2’) not working properly in child themes
- Archiving annual festival site
- How to know the theme name of a wordpress blog?
- How do I move the page title (H1) to header.php (outside of the loop) in a WordPress theme?
- Theme Development Admin Area [closed]
- How to know if user choose to show full post or excerpt?
- Investigating complex themes still slow even with WP caching
- Theme settings default, strange behavior before first save
- Is that worth it to find a designer for creating a WordPress theme for selling on ThemeForest? [closed]
- Howto keep header image when changing theme
- setting a different theme for specific category in wordpress
- Mobile issue – website isn’t properly detecting screen size [closed]
- Child Theme not overriding a template section on live site – but is on local site
- Online theme customizer missing details
- Redux callback action
- Problem of running development copy of WordPress on WebMatrix?
- Switching content between summer and winter
- translation does not work for ‘Home’
- How to translate a string that contains a WordPress sitename
- Is that a malicious code?
- How can my user make their own Blog/Diary
- Where do I find (free) fully-internationalized themes? [closed]
- How do I manually revert back to my old theme?
- Modifying the markup in the Tag Cloud widget?
- How to trace and resolve a theme problem such as flickering links in WordPress? [closed]
- Child theme looks different from parent theme, and incorrectly displays parts
- Is it a good practice to disable wpautop for premium themes?
- linking to an svg through comments_popup_link
- How to use custom page templates in a theme that hides page template option?
- Create Custom Attachment Template That is Processed from Plugin Folder?
- How to include stylesheet in custom admin using parent_slug
- How would I got about calling a php file every time someone publishes a new post?
- Custom theme – pages in menu
- remove preloader in WordPress theme [closed]
- porto theme pagination on woocommerce not working
- Flexslider in child theme
- How to edit the default comment title?
- Why my function.php file in theme delete automatically? [closed]
- How to reverse the pagination numbers of an archive?
- Theme translates the_author_posts_link. How can I remove their translation?
- Theme CSS missing completely
- How to implement this layout?
- WordPress customizer extremely slow, cant work in it
- Missing privacy policy checkbox on login page (using Enfold theme)
- How exactly does WordPress load themes from api.wordpress.org?
- Themes don’t show up in the dashboard -> Appearance -> Themes
- Let custom text widget use the same font as the theme
- SSL errors when I activate my custom theme
- How to show taxonomy in WordPress shortcode
- “Template is missing” install error on non-child theme
- Create a live demo gallery for themes
- No “available widgets” (wordpress 3.2.1 multisite)
- How to create a second index.php?
- Lightword Theme – only one menu item
- how to use Easy Docs theme to write a book?
- How to create an Single-Portfolio page?
- 2 WP websites same content different themes
- How is WordPress child related to Buddypress child theme
- “Parse error: syntax error, unexpected” and the WordPress Theme Editor no longer working!
- Define a Custom Template Part As A Widget Area
- Changing Sidebar In 2023 Theme
- Absolute and relative paths
- Get header/footer list for a theme
- How to remove pop up on website (css changes not visible)?