Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Button display inline with text (all on the same line)
- This topic has 6 replies, 2 voices, and was last updated 12 years, 8 months ago by admin.
-
AuthorPosts
-
March 19, 2012 at 8:03 am #5861juliegilesMember
Hi,
I am hoping I can get my “buy now” or “add to cart” buttons to display on the same line as other text instead of displaying on their own line. See this page:
http://playground-sf.org/wordpress/box-office/
In the “Co-Productions” section I want the buttons on the same line as “FLEX TICKET”.
I tried making the css for the buttons say display:inline, that didn’t help.
Thanks.
J
March 19, 2012 at 11:15 pm #43170adminKeymasterUpdate: Details on eStore’s Text Link Buy Feature can be found here:
===============
A button is a form and by default a form will always go on its own line. Wrap the button and the other texts inside CSS div and then use the “float” properly to place theme side by side.
Alternatively, use the text link feature of eStore to create your add to cart or buy now button so it will look like a button but it will actually be a text link so you will have more control over the look and feel. Check the extra eStore shortcodes plugin for more details:
http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
Here is an example of how you will use it:
<a href="your-domain.com/?wp_eStore_buy_now=1"><img src="link-to-your-button-image" alt="Buy Now" ></a>
March 20, 2012 at 2:10 am #43171juliegilesMemberOk, that fixes that problem, but creates another, now there is no hover state on the image. Is there a way to add that in css. I’ve tried a few things but they aren’t working, ideally this button would have 70% opacity like the others.
Thanks!
March 20, 2012 at 2:24 am #43172juliegilesMemberI am also wondering if the cart in the sidebar has an id? I was hoping to highlight it more in the sidebar by giving it a border and/or background. Would something like this work…
div#id-of-widget {
background:#cccccc;}
March 20, 2012 at 4:31 am #43173adminKeymasterYou can easily add a CSS class to that link and then customize the hover style. This video will help you with these customization as it will show you how you can find what class and ID is there:
April 1, 2012 at 5:15 pm #43174juliegilesMemberHi Can I use this with an add to cart button instead? Can you send me the proper code? I tried to do it myself and it’s not working.
Thanks
Julie
April 2, 2012 at 8:53 am #43175adminKeymasterYes, you can use this text link option to add an item to the cart too (just like how an add to cart button would work). Check the extra shortcodes plugin reference PDF file for details on how to use that.
http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
-
AuthorPosts
- You must be logged in to reply to this topic.