Fix Paypal Buttons in Thesis

Have you ever tried to insert Paypal Buy Now buttons into a blog running Thesis ? You follow all the instructions and end up with great big scaled up pay pal buttons that look stupid.

Paypal buttons in Thesis are huge

So, how do i fix them ?

The fix is actually very simple. Open the Thesis Custom File Editor. From the drop down list select custom.css and click the green Edit selected file button.

At the end of the file add the following code

.custom .format_text input, #commentform input, #commentform textarea {
    width:auto;
}

if you are having trouble try typing it instead of copy and pasting.

Save the file, and reload you page with the paypal buttons. If everything went to plan your buttons should be the correct size now.

Normal sized paypal buttons in Thesis

Goodluck, I hope this helps you out. Let me know either way

VN:F [1.9.17_1161]
Rating: 5.0/5 (4 votes cast)
Fix Paypal Buttons in Thesis, 5.0 out of 5 based on 4 ratings
Share the Love
Get Free Updates

Related posts:

  1. Make Google Friend Connect Work with Thesis

Tags:

75 Responses to “Fix Paypal Buttons in Thesis”

  1. vic says:

    this is huge, pun intended…thank you so much for sharing this code. how did you figure this out? nvrmnd, thank you so much.

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  2. Tia – BizChickBlogs.com says:

    THANK YOU! :) I was pulling my hair out over this one. I really appreciate this.

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  3. Valerie says:

    Thank you thank you thank you from an html illiterate person!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      you’re welcome, you’re welcome, you’re welcome from a computer geek

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  4. James says:

    This is why I LOVE the internet – my problem solved in seconds instead of hours! My button is small again. :) Thank you!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      My pleasure James glad you are sorted. It’s a crappy bug isn’t it

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  5. Twitter Management Services says:

    Andrew, you are DA MAN!

    I’ve never seen your site before, and I don’t know anything about you, but I am SO glad I thought to search for this problem before logging into the Thesis forum.

    You see, I realized today that our site was already ranked #7 on Google for one of our targeted keyword phrases, AND THE SITE HAD ALMOST NO CONTENT ON IT!!! I’ve been scrambling for the last 12 hours trying to get all of the content up, and alas, I came to the last step only to find this problem. I was dreading having to go through that forum, figure out where to post, and then sit here and wait and wait and wait for someone to respond, IF they respond. You are a life-saver my man!

    Please let me know if there is anything we can do for you. Remind me of this post, and I will be only TOO HAPPY to wholesale anything we do to you!

    MAN! I can’t even begin to think about how many hours you just saved me!

    I REALLY need to get this site online TODAY, and

    VA:F [1.9.17_1161]
    Rating: +1 (from 1 vote)
    • andrew says:

      Shucks thanks, glad I could help. Good luck with the site

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  6. Twitter Management Services says:

    Hi Andrew,

    Well, no sooner did I leave that raving review above that I ran into problems. I actually did get the code you referenced above to work on one site (which has Thesis 1.6). However, when I tried it on our site (which has Thesis 1.7), that code doesn’t work. Any ideas?

    Here’s the page:

    http://twittermanagementservices.com/services/wholesale

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      Try

      .custom .format_text input, #commentform input, #commentform textarea, input[type=image] {
      width:auto;
      }

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  7. Twitter Management Services says:

    Andrew,

    Nope. Still the same. Any other ideas?

    In the interest of providing quality content to this page (not the least of which would be getting to the bottom of this in case this ever happens to anyone again in the future, I’d be happy to allow you access to the site to figure out the issue so you can provide an answer for anyone reading this. Let me know if you’d want to do that, or if you even need to do that to find an answer.

    Thanks!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  8. Twitter Management Services says:

    By the way, I thought I’d also mention that I just upgraded the site in question to WordPress 3.0, and now I can’t access the custom file editor. I’m having to access custom.css using cPanel access. In case anyone sees this, you might think twice about upgrading to WordPress 3.0 until after the DIYThemes guys address this issue.

    Hope this helps!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      open /wp-content/themes/thesis/lib/admin/admin.php

      around line 42 find

      if (use_codepress()) add_action(‘admin_print_footer_scripts’, ‘codepress_footer_js’);

      comment it out by adding to slashes to the start of the line

      //if (use_codepress()) add_action(‘admin_print_footer_scripts’, ‘codepress_footer_js’);

      You will loose syntax highlighting but at least the Thesis custom file editor will work again

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  9. Twitter Management Services says:

    OK. I’ll do that right away. Meanwhile, any ideas on what else I can do to get rid of the swollen PayPal button?

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  10. Twitter Management Services says:

    Andrew,

    The advice you just gave regarding getting access to the custom file editor again worked. Since I’m not as technically oriented as you are, could you tell us in lamen’s terms what “syntax highlighting” means? I’d like to know what I just lost, and if it will matter to me on this particular website.

    Thanks!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      Syntax highlighting s the nicely coloured text in the custom file editor in Thesis – it allows you to easily spot variables, functions and other components of a programming or markup language. It is an entirely aesthetic function and you miss nothing by disabling it.

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
      • Twitter Management Services says:

        Thanks for the clarification, Andrew! I agree… that’s something I would never have missed, especially since I didn’t know it existed in the first place! :-)

        VA:F [1.9.17_1161]
        Rating: 0 (from 0 votes)
  11. Twitter Management Services says:

    Andrew,

    I just responded to your email, and I’ve set up an admin user account for you in WordPress as well. You should have received that info from WordPress.

    Let me know if there is anything else I need to do for you.

    Thanks!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • Lisa Wood says:

      Like Andrew posted earlier, add this to your custom.css file:

      .custom .format_text input, #commentform input, #commentform textarea {
      width:auto;
      }

      It works. I run 1.7 on my own site and tested it on your site through Firebug. It works.

      VA:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
      • andrew says:

        Thanks Lisa – can you just put that on a certificate for me and send it over – it’s not often people admit I’m right – and they never do it without adding the word bastard to the end of it

        VN:F [1.9.17_1161]
        Rating: 0 (from 0 votes)
        • Twitter Management Services says:

          Andrew & Lisa,

          I’m not sure how to take your last comments. I hope I haven’t given either of you the wrong impression that I think either one of you are wrong. I don’t. Not at all. I know what you’re saying to do is supposed to work. I’ve done it exactly as you both said on another site I have running Thesis 1.6, and it did, in fact, work. So in no way am I suggesting that either one of you are wrong. OK?

          All I am telling you is that for some reason, on this site on which I am running 1.7, it’s not working. Since I have seen other sites running 1.7 on which the button is working, I tend to discount that the version is the reason it’s not working.

          I appreciate the help you both have been trying to give in order to get to the bottom of this.

          Andrew, were you not able to figure it out even after logging into the website?

          VA:F [1.9.17_1161]
          Rating: 0 (from 0 votes)
  12. Dave says:

    Hi,

    I’m actually having the same problem on a site I’m working on; I’m also running Thesis 1.7 and just upgraded to WP 3.0. I’ve tried the same code, but it doesn’t seem to be working.

    The URL is: http://davidlanning.com/between-the-needles-nightfall-marco-benevento/

    Any advice? Thanks for your time.

    -Dave

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      The code works as is on Thesis 1.7 and WordPress 3 – see the donate button on this page – there maybe conflicting style definitions, send a URL and I would be happy to have a quick look.

      If you have copied and pasted the code into the custom file editor, double check it is still there after you click save, there are numerous issues with copy and paste and the editor in thesis

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  13. Gary Bloomer says:

    Dear Andrew,

    I’ve been running Thesis for a few weeks now and love it.
    But those HUGE PayPal buttons were beginning to tick me off. Thank you SO MUCH for this simple, life changing piece of code. My PayPal links now look normal.

    You win the AWESOME CODER OF THE YEAR AWARD!

    Thanks so much!

    —Gary B.

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      Wow, I am digging all the love right now. Do you need a postal address to send the certificate or can I just download it from somewhere?

      So glad I could help Gary

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  14. Bill says:

    Hi Andrew,
    Thanks for the tip however my question is a little more fundamental; where do I put the PayPal code in WP 3 with the latest version of thesis?
    Thanks in Advance
    Bill

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      You paste the code into the post wherever you want the button to appear. You will need to switch to HTML mode (by clicking the HTML tab at the top of the editor)

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  15. Doug says:

    Dude!

    That totally fixed problems I was having with fields, and almost made my HTML buttons look normal. Still need a few more tweaks to make the button look totally normal, but this goes a long way.

    Thanks man!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  16. Steve Place says:

    Win.

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  17. Katey says:

    Thanks so much… such a tiny piece of code does wonders!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      You’d be surprised how often that is the case. Glad it got you sorted Katey, have a wonderful rest of your day

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  18. John says:

    Thanks for posting this Andrew – you saved me both the time and grief of trying to get it fixed on my own :-)

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  19. Janet Janowiak says:

    You, my dear, are a genius!! I spent the last hour reading through 5 pages of 1 post regarding the Paypal button size on the DIYThemes forum. You were able to solve my issue in, what, 5 sentences when Godhammer couldn’t do it in 5 pages!! Nice crisp, concise writing. Keep it up!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  20. Jody says:

    Andrew,

    You rule! This fix worked perfectly – thank you sooooo much!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  21. wolfgang says:

    Hi Andrew
    I also have the “supersize PayPal” problem, combined with the fact, that the solution you offer does not work in my WP3 / Thesis 1.8 installation. If I check with Firefox, layout.css in line 243 defines
    .format_text input, #commentform input, #commentform textarea {
    border-width:0.071em;
    padding:0.214em;
    width:45%;

    I can override the width setting manually in Firefox, and the button gets back to normal. Anyhow, the .custom entry does not have any effect, Firefox still displays “width:45%” and a huge PayPal button. Looks like the problem ‘Twitter Management Services’ faces, too…

    Could you come up with any ideas yet? Thanks…

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • wolfgang says:

      Oops, the tool I used to check and edit the code is of course ‘Firebug’, not ‘Firefox’…

      VA:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
    • andrew says:

      The problem Twitter management Services had was incorrectly formatted CSS which rendered the code broken and ineffective. Happy to look at yours as well it sounds like the same issue. Send me an email if you want me to take a look.

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
      • wolfgang says:

        Thank you for the hint! I checked my custom.css file and found a comment that was not correctly written. I fixed that, and “Da Da!” your code fixing the PayPal button worked.

        Because the PayPal button was suddenly located inside a box (?…) I tried to add another line:
        border-width: 0 0 0 0;
        and it worked.

        Thank you for your support!!!

        VA:F [1.9.17_1161]
        Rating: 0 (from 0 votes)
  22. Robert Scanlon says:

    Who would have thought that Thesis was responsible for this? I have custom PayPal buttons and they appeared too SMALL not too big – and had a border.

    So I used:

    .custom .format_text input, #commentform input, #commentform textarea {
    width:auto;
    border-style:hidden;
    }

    Or you could use border-style:none or as Wolfgang said, border-width: 0 0 0 0;

    Thansk again for a very frustrating issue spending over one hour until finding this solution (WP3.01, Thesis 1.7 with ThesisFolio)

    Thanks so much!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  23. Christine Green says:

    Thanks a million! This was driving me and my client crazy!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  24. Laura says:

    Thank you so much! I almost drove myself crazy with this :P

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  25. Jørn Rune says:

    Cool. Thanks a bunch! It was quite annoying.. ..but not anymore! (“,)

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  26. Kimberly Dawn says:

    I had noticed after using this code

    .custom .format_text input, #commentform input, #commentform textarea {
    width:auto;
    border-style:hidden;
    }

    that it does work to remove the border around the button but my borders around my forms have disappeared is there any way to fix this.

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      You would have to email me your website so that I could look at it for you Kimberly

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  27. Bill says:

    Very simple: Thank you! Thank you! Thank you! Simple fixes are always the best…

    Bill

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  28. Catherine says:

    Hey Andrew,

    What if I just want to take away the border on the paypal image?

    TIA!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      Add

      background:none;
      border:none;

      to the style rules – but this will affect all form elements – you would be better off getting your developer to give the paypal button it’s own CSS class

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  29. Jasmine says:

    Andrew,

    I’ve read through this thread and every other one I could find about how to fix this problem.

    I am using thesis 1.7

    I’ve tried every css code offered. I’ve tried changing the html directly…nada!!!

    Nothing is shrinking that mammoth button!

    Wondering if you have any other miracles up your sleeve?

    Warmly, Jasmine

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      email me a link to the page with the button Jasmine.

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  30. Jasmine says:

    Andrew, thanks so much for getting back to me fast. I finally figured out how to solve the problem in the html so I’m all set I think.

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  31. Duke Incleve says:

    I don’t know what I did or why I did it, but I do know that it worked.

    You’re a baaaaad man, Andrew.

    Thank you ever so much. I was recently laid off then got cancer and had chemo/radiation treatment, so now I am starting my own little business. I made my own websie with WordPress-Thesis without doing any coding. It’s not great, but it’ll do.

    Anyway, thanks again. I don’t have enough money right now to throw some your way, but if my business works out I will in the future.

    Keep up the good work.

    Duke

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      Glad to hear you are not letting a few bad events hold you back Duke. Onwards and upwards mate. Best of luck with the treatment and the website, I hope to hear from you again.

      Andrew

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  32. Mairea says:

    Many thanks! You saved me a lot of headache!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  33. Michelle Martin says:

    THANK YOU, THANK YOU, THANK YOU, this had me stumped and thought I wouldn’t be able to post my page :)

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  34. Rahul says:

    Thank you so much for this! I was getting really annoyed and tried everything, then I found your post. Worked like a charm!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  35. Cynthia Yockey says:

    I’ve tried the code you suggest, but it is not working for me. I can’t find a fix on the DIY Themes forum, either. Here is my post.

    I appreciate the work you’ve done on this. What am I missing?

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  36. Cynthia Yockey says:

    I just found out what my problem was, thanks to Godhammer. I wanted to keep track of what the code was for, but did not add my comment above the code you gave correctly.

    Specifically, I didn’t enter my comment as follows:
    /* paypal buttons resize: */
    I didn’t know to use “/* (comment text here) */” to set off my comment.

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  37. Tim says:

    Many thanks! Looks so much better now!
    :)

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  38. Nancy says:

    Thank you! Can’t tell you what a relief it is to get this solved!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  39. Amanda Taylor says:

    Help! I’m beyond frustrated. I have tried all of these solutions and still can’t get my paypal buttons to not look crazy. I’m on a deadline and need to get this post up ASAP. Can you help me?

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • andrew says:

      email me directly amanda and I will do what I can to help you andrew at andrewbleakley.com

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)

Leave a Reply