• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Disabling sidebar and Footer CTA/Widgets in Essence Pro

Welcome!

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.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Disabling sidebar and Footer CTA/Widgets in Essence Pro

This topic is: not resolved

Tagged: Essence Pro, footer, Sidebar, widgets

  • This topic has 0 replies, 1 voice, and was last updated 3 years, 3 months ago by lvvvvvl.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • May 1, 2019 at 1:41 am #490926
    lvvvvvl
    Participant

    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

  • Author
    Posts
Viewing 1 post (of 1 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble