The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

add woocommerce add to cart button into theme (2 posts)

  1. kevinalves
    Posted 2 years ago #

    hello world.
    I'm wondering if there is a way to add a woocommerce "add to cart" button into my theme. I know about using shortcodes in pages and posts, but I need to be able to put it into the header.php. I feel like there must be a way to do this, but I am pretty lost.

    The site is http://lucidelixir.com/dev1/

    in the header where it says "Buy Lucid Elixir" I need it to be an add to cart button.

    Thanks in advance for any help


  2. Roy Ho
    Posted 2 years ago #

    You can use shortcodes in your header by using do_shortcode function.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic