WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. kevinalves
    Member
    Posted 10 months 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 10 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic