Webmaster Sun Login
Not a member yet? Sign up

How to center Paypal button in Wordpress

  • HOME
  • FORUMS
  • BLOGS
  • MARKETPLACE
  • ADVERTISING
  • SPECIAL OFFERS
  • WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 5 of 5
    Stick this thread
  1. #1
    Join Date
    Dec 2013
    Posts
    219
    Thumbs Up/Down
    Received: 5/0
    Given: 28/0
    Thanks
    90
    Thanked 14 Times in 12 Posts

    How to center Paypal button in Wordpress

    I am setting up a Wp single page and generated a Paypal button, I have codes from Paypal and inserted on the page. But the problem is although its centered in Wordpress editor but when viewing on my browser it still shows the buttons on the left hand side. Is there an html code I'm missing or something to make Paypal button center on my WordPress page?

  2. #2
    Join Date
    May 2016
    Location
    USA
    Posts
    1,570
    Thumbs Up/Down
    Received: 476/1
    Given: 27/1
    Thanks
    13
    Thanked 197 Times in 181 Posts
    Try inserting the PayPal code in between center tags...

    <center>
    </center>

    Do this in view source mode.

  3. #3
    Join Date
    Mar 2017
    Posts
    8
    Thumbs Up/Down
    Received: 1/0
    Given: 0/0
    Thanks
    0
    Thanked 0 Times in 0 Posts
    CSS is your friend.
    Use the browser's Inspect function to find the element in page source.
    Use "margin: auto" on the button element, or "text-align: center" on the div containing the button.
    With CSS you can also easily control the padding (space around the element) and many other things.

    CSS is easy to learn, very powerful and extremely useful!
    Styling in html works too, but it is so 1998 Every webmaster should know and be able to use basic CSS! The best way to learn it is to start with simple things, like centering.

  4. #4
    Join Date
    Dec 2013
    Posts
    283
    Thumbs Up/Down
    Received: 30/0
    Given: 350/0
    Thanks
    80
    Thanked 15 Times in 14 Posts
    Quote Originally Posted by fromrachel View Post
    I am setting up a Wp single page and generated a Paypal button, I have codes from Paypal and inserted on the page. But the problem is although its centered in Wordpress editor but when viewing on my browser it still shows the buttons on the left hand side. Is there an html code I'm missing or something to make Paypal button center on my WordPress page?
    Wordpress editor can remove any HTML tags after you edited your posts. Note on that!

    There are a few way to center Paypal button in Wordpress as following.

    Adding

    <center></center> around your Paypal button.

    Creating a div with this code: <div style="text-align:center;">Your Paypal button</div> or <div style="margin: 0px auto;">Your Paypal button</div>

    You can replace style="" with a class="" into a CSS file to make your code more professional.


    Hope that helped.

  5. #5
    Join Date
    Jan 2018
    Location
    3473 Stout Street, Denver, PA 17517
    Posts
    5
    Thumbs Up/Down
    Received: 1/0
    Given: 3/0
    Thanks
    0
    Thanked 1 Time in 1 Post
    Hey there! PayPal gives you the HTML code that you can use your web page so that you can start receiving online payments. By default, this code produces a button which places at left-side on your page. you can center the button yourself with some CSS code. The CSS code can change the PayPal button, centering it on the page without changing its functionality.
    /* center Paypal button */
    input.wpedon_paypalbuttonimage {
    display: block;
    margin: 0 auto;
    }

  6. The Following User Says Thank You to MattCarson For This Useful Post:
    PMonroe (01-22-2018)

Newer Threads

  1. JoeHamilton
    Should I buy .net and .org?
    By JoeHamilton in forum Domain Names
    Hikarihost
    Replies: 6 | Views: 1098
    Last post by Hikarihost, 03-31-2017, 04:28 AM
  2. JoeHamilton
    kelz784
    Replies: 5 | Views: 1388
    Last post by kelz784, 12-08-2017, 05:48 AM
  3. timothykiko
    joeypacouter
    Replies: 22 | Views: 2034
    Last post by joeypacouter, 04-25-2017, 09:12 AM
  4. Steve32
    jennypitula
    Replies: 14 | Views: 1947
    Last post by jennypitula, 12-26-2017, 06:57 AM
  5. HostaPolis
    Do you offer ad space?
    By HostaPolis in forum Make Money Online
    enstinemuki
    Replies: 6 | Views: 1721
    Last post by enstinemuki, 04-17-2017, 06:13 AM

Older Threads

  1. timothykiko
    Riviera
    Replies: 6 | Views: 1902
    Last post by Riviera, 08-05-2018, 02:17 PM
  2. SenseiSteve
    HostaPolis
    Replies: 5 | Views: 1121
    Last post by HostaPolis, 03-27-2017, 12:27 AM
  3. Eugeneus
    indojaja
    Replies: 1 | Views: 969
    Last post by indojaja, 06-12-2017, 06:35 PM
  4. Josef Rohhami
    Josef Rohhami
    Replies: 0 | Views: 665
    Last post by Josef Rohhami, 03-23-2017, 07:58 PM

Latest Threads

  1. Shwet
    Rob Whisonant
    Replies: 1 | Views: 26
    Last post by Rob Whisonant, Yesterday, 07:39 PM
  2. Alfaleads
    Alfaleads
    Replies: 0 | Views: 91
    Last post by Alfaleads, Yesterday, 10:01 AM
  3. jia431
    Rob Whisonant
    Replies: 1 | Views: 24
    Last post by Rob Whisonant, Yesterday, 07:40 PM
  4. Drandy4
    Drandy4
    Replies: 0 | Views: 12
    Last post by Drandy4, Yesterday, 01:41 AM
  5. hamlak
    hamlak
    Replies: 0 | Views: 61
    Last post by hamlak, 12-12-2018, 12:42 PM

Similar Threads

  1. Adam Yunker
    Developer
    Replies: 2 | Views: 1274
    Last post by Developer, 01-03-2016, 09:03 PM
  2. iisbetoq
    iisbetoq
    Replies: 2 | Views: 2701
    Last post by iisbetoq, 07-29-2013, 12:53 AM
  3. JoJo
    OWF
    Replies: 4 | Views: 5345
    Last post by OWF, 03-12-2013, 03:14 PM
  4. JerryJo
    JerryJo
    Replies: 0 | Views: 1317
    Last post by JerryJo, 03-11-2013, 07:34 AM
  5. peterparker
    webdesign
    Replies: 1 | Views: 1716
    Last post by webdesign, 08-03-2012, 03:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Internet Marketing Forum

Webmaster Sun is a forum where you’ll find in-depth discussions and resources to help you succeed on the web whether you are new or experienced. You’ll find it all here. With topics ranging from internet marketing, search engine optimization, social networking, make money online, web hosting, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Come Hang Out With Us

    Facebook Twitter Webmaster Forum Google+

    Webmaster Sun Logo
Copyright ©2012 - 2018, WebmasterSun.com. All rights reserved. Internet marketing forum for internet marketers, webmasters, web hosting providers, designers and affiliate marketers.

Welcome to Webmaster Sun

The World's Number 1 Webmaster Community, SEO and Marketplace

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!