Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

I want 2 Buy Now buttons side by side

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › I want 2 Buy Now buttons side by side

Tagged: button modification

  • This topic has 3 replies, 3 voices, and was last updated 13 years, 6 months ago by Louis.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 31, 2011 at 8:04 pm #3944
    stitch1z
    Member

    I have a relatively simple problem for you.

    When I add in the “Buy Now” type button short code like so:

    [wp_eStore_buy_now:product_id:1:end] $2.99

    It will look something like this:

    [BUTTON]

    $2.99

    If I want two buttons, I would have to do this for both to show up:

    [wp_eStore_buy_now:product_id:1:end] $2.99

    [wp_eStore_buy_now:product_id:2:end] $2.99

    Which will obviously come out like this on my post or page:

    [BUTTON]

    $2.99

    [BUTTON]

    $2.99

    What do I need to edit to make it look like this?:

    [BUTTON] $2.99

    As well as:

    [BUTTON] $2.99 [BUTTON] $2.99

    Thank you in advance!

    August 1, 2011 at 1:39 am #34966
    amin007
    Participant

    This requires a bit of CSS knowledge but essentially you can wrap the buttons in a float left div to stack them side by side. Copy and paste the following in the “HTML View” of your editor (this is HTML code so need to be pasted in HTML view) and it should do the job.

    <div style="float:left;">
    [wp_eStore_buy_now:product_id:1:end]
    </div>
    <div style="float:left;">
    $2.99
    </div>
    <div style="float:left;">
    [wp_eStore_buy_now:product_id:2:end]
    </div>
    <div style="float:left;">
    $2.99
    </div>
    <div style="clear:both;"></div>

    Essentially you are just wrapping every element in a float left div and then finally clearing the float using a clear float at the end.

    August 1, 2011 at 3:24 am #34967
    stitch1z
    Member

    Awesome! Thanks!

    November 13, 2011 at 8:15 pm #34968
    Louis
    Member

    Very awesome, thanks! I love stuff like that.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ