Support » Plugin: WooCommerce » Store notice body class is added even if the user has dismissed the notice

  • Resolved eclev91

    (@eclev91)


    When the store notice is enabled, the <body> tag gets a class. This class is still assigned when a user has dismissed the notice.

    Some themes may depend on that body tag to account for various offsets related to showing the notice. This can create display issues for users who have dismissed the notice. Space may be allocated for the notice, but it isn’t ultimately rendered.

    Linked page has the dismiss button hidden until we come up with a solution for this. You can use your inspector to find the dismiss button, show it, and click it to demonstrate the issue with this specific theme (I’ve opened a ticket with them as well).

    I think the body class should be removed if the user has the cookie that gets set when the notice is dismissed.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://runhubnw.com/wp
    Site address (URL): https://runhubnw.com
    WC Version: 3.8.1
    REST API Version: ✔ 1.0.2
    Log Directory Writable: ✔
    WP Version: ❌ 5.3 - There is a newer version of WordPress available (5.3.2)
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: nginx/1.17.3
    PHP Version: 7.3.9-1+ubuntu18.04.1+deb.sury.org+1
    PHP Post Max Size: 12 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.58.0
    OpenSSL/1.1.1c
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.18-MariaDB-1:10.3.18+maria~xenial-log
    Max Upload Size: 12 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.8.1
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ✔
    Total Database Size: 90.46MB
    Database Data Size: 80.57MB
    Database Index Size: 9.89MB
    wp_woocommerce_sessions: Data: 0.03MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_order_items: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_order_itemmeta: Data: 0.19MB + Index: 0.04MB + Engine MyISAM
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_aryo_activity_log: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
    wp_as3cf_items: Data: 0.22MB + Index: 0.41MB + Engine InnoDB
    wp_bookly_appointments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_bookly_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_bookly_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_bookly_customer_appointments: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_bookly_holidays: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_bookly_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_bookly_notifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_bookly_payments: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_bookly_schedule_item_breaks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_bookly_sent_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_bookly_series: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_bookly_services: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_bookly_shop: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_bookly_staff: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_bookly_staff_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_bookly_staff_preference_orders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_bookly_staff_schedule_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_bookly_staff_services: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_bookly_stats: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_bookly_sub_services: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.04MB + Index: 0.01MB + Engine MyISAM
    wp_comments: Data: 0.04MB + Index: 0.02MB + Engine MyISAM
    wp_csp3_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_gf_entry: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_gf_entry_meta: Data: 0.20MB + Index: 0.09MB + Engine InnoDB
    wp_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_itsec_distributed_storage: Data: 2.16MB + Index: 0.00MB + Engine MyISAM
    wp_itsec_fingerprints: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_itsec_geolocation_cache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_itsec_lockouts: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_itsec_logs: Data: 51.14MB + Index: 2.25MB + Engine MyISAM
    wp_itsec_temp: Data: 0.08MB + Index: 0.10MB + Engine MyISAM
    wp_iwp_backup_status: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_iwp_processed_iterator: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_layerslider: Data: 0.15MB + Index: 0.00MB + Engine MyISAM
    wp_layerslider_revisions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_options: Data: 3.94MB + Index: 0.12MB + Engine MyISAM
    wp_postmeta: Data: 12.55MB + Index: 1.42MB + Engine MyISAM
    wp_posts: Data: 7.26MB + Index: 0.27MB + Engine MyISAM
    wp_redirection_404: Data: 1.02MB + Index: 4.19MB + Engine InnoDB
    wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_redirection_logs: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_revslider_css: Data: 0.09MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_css_bkp: Data: 0.09MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_layer_animations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_navigations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_navigations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_sliders: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_sliders_bkp: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_slides: Data: 0.12MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_slides_bkp: Data: 0.12MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_static_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_static_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_terms: Data: 0.01MB + Index: 0.04MB + Engine MyISAM
    wp_term_relationships: Data: 0.05MB + Index: 0.10MB + Engine MyISAM
    wp_term_taxonomy: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    wp_usermeta: Data: 0.10MB + Index: 0.05MB + Engine MyISAM
    wp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_yoast_seo_links: Data: 0.05MB + Index: 0.02MB + Engine MyISAM
    wp_yoast_seo_meta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (34) ###
    
    InfiniteWP - Client: by Revmakx – 1.9.4.4
    Gravity Forms: by rocketgenius – 2.4.15
    Map List Pro: by SmartRedFox – 3.12.11
    Ultimate Addons for WPBakery Page Builder: by Brainstorm Force – 3.18.0
    Advanced Custom Fields PRO: by Elliot Condon – 5.8.7
    WP Offload Media: by Delicious Brains – 2.3.1
    Anti-spam: by webvitaly – 5.5
    Activity Log: by Activity Log Team – 2.5.2
    Bookly Pro (Add-on): by Bookly – 2.1
    Bookly: by Bookly – 17.6
    Enjoy Plugin for Instagram: by Mediabeta Srl – 4.0.7
    Envato Market: by Envato – 2.0.3
    The Events Calendar PRO: by Modern Tribe
    Inc. – 4.7.10
    
    GA Google Analytics: by Jeff Starr – 20191109
    WPBakery Page Builder: by Michael M - WPBakery.com – 6.0.5
    MC4WP: Mailchimp for WordPress: by ibericode – 4.7.2
    Mailgun: by Mailgun – 1.7.1
    Redirection: by John Godley – 4.5.1
    Redis Object Cache: by Till Krüss – 1.5.5
    Slider Revolution: by ThemePunch – 6.1.0
    Run Hub NW: by Sterner Stuff Design –
    The Events Calendar: by Modern Tribe
    Inc. – 4.9.12
    
    Compress JPEG & PNG images: by TinyPNG – 3.2.0
    Two Factor: by Plugin Contributors – 0.4.7
    UpSolution Core: by UpSolution – 6.8
    WooCommerce PayPal Powered by Braintree Gateway: by WooCommerce – 2.3.3 – 2.3.5 is available
    WooCommerce Name Your Price: by Kathy Darling – 2.11.1 – 2.11.4 is available
    WooCommerce: by Automattic – 3.8.1
    Yoast SEO: by Team Yoast – 12.6.2
    WP fail2ban: by Charles Lecklider – 4.2.7.1
    WP Fastest Cache: by Emre Vona – 0.9.0.0
    WP Migrate DB Pro CLI: by Delicious Brains – 1.3.5
    WP Migrate DB Pro Media Files: by Delicious Brains – 1.4.14
    WP Migrate DB Pro: by Delicious Brains – 1.9.8
    
    ### Inactive Plugins (0) ###
    
    ### Must Use Plugins (4) ###
    
    Bedrock Autoloader: by Roots – 1.0.0
    Disallow Indexing: by Roots – 1.0.0
    InfiniteWP - Client Loader: by Revmakx –
    Register Theme Directory: by Roots – 1.0.0
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: –
    Currency: USD ($)
    Currency Position: left_space
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: ✔
    
    ### WC Pages ###
    
    Shop base: #21756 - /shop/
    Cart: #22333 - /cart/
    Checkout: #22334 - /checkout/
    My account: #22335 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Impreza Child
    Version: 1.0
    Author URL: http://us-themes.com/
    Child Theme: ✔
    Parent Theme Name: Impreza
    Parent Theme Version: 6.8
    Parent Theme Author URL: http://us-themes.com/
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### Braintree (Credit Card) ###
    
    Environment: Production
    Tokenization Enabled: –
    Debug Mode: Off
    
    ### Braintree (PayPal) ###
    
    Environment: Production
    Tokenization Enabled: –
    Debug Mode: Off
    
    ### Action Scheduler ###
    
    Complete: 0
    Oldest: –
    Newest: –
    
    Pending: 0
    Oldest: –
    Newest: –
    
    Canceled: 0
    Oldest: –
    Newest: –
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.