• 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

Random Add To Cart Button

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 › General Discussion › Random Add To Cart Button

This topic is: not resolved
  • This topic has 1 reply, 1 voice, and was last updated 9 years ago by bconley.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 28, 2017 at 9:13 am #205470
    bconley
    Participant

    I am not sure this is a Genesis issue but I don't know where to turn. I am using Digital Pro and recently I notice that when I view my site in a responsive mode, a button shows at the top of the page. It says Add To Cart. I do not have any eCommerce plugins installed and I do not sell actual products. I have search the files for this code and ID and cannot find it anywhere. Any ideas on what my next steps should be?

    The code in the HTML is this:

    <!-- The below method uses jQuery, but that is not required -->
    <button id="addToCartButton">Add To Cart</button>
    <!-- Add event to the button's click handler -->
    <script type="text/javascript">
    $( '#addToCartButton' ).click(function() {
    fbq('track', 'AddToCart', {
    content_ids: ['1234'],
    content_type: 'product',
    value: 2.99,
    currency: 'USD'
    });
    });
    </script>

    http://darrenslaughter.com
    April 28, 2017 at 11:02 am #205474
    bconley
    Participant

    I found the culprit. It was my Facebook Pixel Conversion Tracking code. Now I have to figure out why there was an Add To Cart button in that code.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ 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

© 2026 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