WordPress.org

Forums

WooCommerce - excelling eCommerce
add woocommerce add to cart button into theme (2 posts)

  1. kevinalves
    Member
    Posted 1 year 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

    http://wordpress.org/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year 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 - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic