This topic is: not resolved
- This topic has 0 replies, 1 voice, and was last updated 7 years ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Community Forums › Forums › Archived Forums › Design Tips and Tricks › Disabling sidebar and Footer CTA/Widgets in Essence Pro
Tagged: Essence Pro, footer, Sidebar, widgets
Hey,
I noticed a lot of people click off my woo pages through the footer widgets or sidebar.
I'm using this code snippets to conditionally do this:
//* Remove sidebar on all Woo pages
if ( function_exists( 'is_woocommerce' ) ) {
add_filter( 'genesis_site_layout', 'woocommerce_page_layout' );
function woocommerce_page_layout() {
if ( is_page ( array( 'cart', 'checkout', 'support', 'my-account' )) || is_shop() || 'product' == get_post_type() || is_woocommerce() ) {
return 'full-width-content';
}
}
}
//* Removes footer widgets Woo pages.
if ( function_exists( 'is_woocommerce' ) ) {
add_action( 'genesis_before_footer', 'remove_footer_woo', 4 );
function remove_footer_woo() {
if ( is_shop() || is_page( 'support' ) || 'product' == get_post_type() || is_woocommerce() ) {
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas', 5 );
remove_action('genesis_footer', 'genesis_do_footer');
remove_action('genesis_footer', 'genesis_footer_markup_open', 10);
remove_action('genesis_footer', 'genesis_footer_markup_close', 15);
}}}
But it doesn't seem to consistently work as sometimes the widgets aren't there during checkout but from what I've seen through the HotJar recordings, other times the widgets do appear to users. I don't know if it's an issue with the prioritizing order or what.
I found this tutorial: https://wpsites.net/web-design/remove-essence-footer-cta-from-woocommerce-pages/ that seems to help removing the CTA eNews widget, but there doesn't seem to be away to remove the other ones consistently.
What am I doing wrong?
Thank you
© 2026 WPEngine, Inc.