Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Align Centering The Encrypted Download Button Universally
- This topic has 21 replies, 5 voices, and was last updated 11 years, 10 months ago by
Prateek.
-
AuthorPosts
-
November 19, 2012 at 2:26 am #7947
RodeThisBeatDotCom
MemberWhen The “Add To Cart” Button Shortcode Is Place In Centering Html It Works Flawlessly But The “Download” Button Shortcode, Left Aligns Even In Centering Html Code. Where & How Can I Edit It To Be Centered At All Times???
November 19, 2012 at 3:16 am #51542Peter
MemberPlease post the link to the page containing the button you are referring to.
November 19, 2012 at 4:08 am #51543RodeThisBeatDotCom
Member[http://www.rodethisbeat.com/?p=1427]
November 20, 2012 at 2:12 am #51544admin
KeymasterIf you look at the HTML you will see that the download button is not inside the paragraph that is aligned center. That paragraph tag ends after the “$FR.EE” string. Add another paragraph with “align=center” property for the download now button.
November 20, 2012 at 9:29 pm #51545RodeThisBeatDotCom
MemberActually It Is In The Paragraph Align Center. There Isn’t A Formula Or Function I Can Edit Within The Plugin 2 Get It Straight?
November 20, 2012 at 10:40 pm #51546Peter
MemberThe following post should be helpful:
https://support.tipsandtricks-hq.com/forums/topic/center-simply-add-to-cart-button
Alternatively, Try adding the following code to your wp_eStore_custom_style.css file:
.download_now_button {
text-align:center;
}(I just tried the above in firebug and it works)
November 21, 2012 at 1:40 am #51547RodeThisBeatDotCom
MemberYep, That Did It!!! Thanks Y’all!!!
April 24, 2013 at 12:23 am #51548Prateek
MemberI have a similar problem with the following shortcode…. it left alligns instead of center alligning as it should
pls advise
[wp_eStore_buy_now_for_specific_gateway id=”3″ gateway=”tpsl”]
April 24, 2013 at 12:55 am #51549Peter
MemberPlease provide a link to your page so we can take a look with firebug – we usually ask for this because each individual site has different behaviours due to the theme and other plugins.
April 24, 2013 at 1:36 am #51550Prateek
Memberhere’s the link >> [http://www.carbiz.in/awesome-deals/emergency-roadside-assistance]
thanx
April 24, 2013 at 4:52 am #51551Peter
MemberBy inserting the following CSS code into the wp_eStore_custom_style.css file your button should align itself to the center:
.wppg-eStore-buy-button-submit{
display: block !important;
margin-left: auto !important;
margin-right: auto !important;
}April 24, 2013 at 5:39 am #51552Prateek
MemberThank you Peter… the button has moved to the centre… but the custom field is still left aligned
Can you help with that as well…
thank you in advance
April 24, 2013 at 1:00 pm #51553Peter
MemberOk, try the following:
.eStore_text_input, .wppg-eStore-buy-button-submit {
display: block !important;
margin-left: auto !important;
margin-right: auto !important;
}April 24, 2013 at 1:09 pm #51554Prateek
MemberHi Peter… didnt quite work …. take a look… now the input box is centered but the preceding text is not….
Rgds
April 25, 2013 at 12:03 am #51555admin
KeymasterUse the following CSS to center the whole form:
.wppg-eStore-buy-button-form{
display: block !important;
margin-left: auto !important;
margin-right: auto !important;
width:400px;
}Alternatively, use the shortcode like the following (go to the “Text/HTML” view of the WordPress page editor to enter the code below):
<div style="text-align:center;">
[wp_eStore_buy_now_for_specific_gateway ....]
</div> -
AuthorPosts
- You must be logged in to reply to this topic.