Border around paypal button in WP

by DaveC2
8 replies
  • WEB DESIGN
  • |
Hello,

I wonder if anyone might help me with a minor issue when placing a paypal order button in a Wordpress page.

I have created a paypal order button and copied the corresponding HTML into a Wordpress page. When I review the page, the button has a grey border around it. If I paste the identical HTML code into a static HTML page then the border is not present. Has anyone seen type of thing before?

Dave
#border #button #paypal
  • Profile picture of the author IMdude123
    its part of your wordpress theme that makes the border around all images. you could edit it in the code.
    {{ DiscussionBoard.errors[5227692].message }}
    • Profile picture of the author DaveC2
      Originally Posted by IMdude123 View Post

      its part of your wordpress theme that makes the border around all images. you could edit it in the code.
      Thanks, that makes sense. I'm using the Thesis theme at the moment. When I find the precise solution I'll post it back here.

      Dave
      {{ DiscussionBoard.errors[5227792].message }}
  • Profile picture of the author john_kennedy
    Can you post a link to the page? Might help narrow it down. It will be something in the stylesheet file.
    {{ DiscussionBoard.errors[5228023].message }}
    • Profile picture of the author drewhowell21
      Try adding:

      Code:
       
      img {
          border:0px;
      }
      to your stylesheet. That should fix the problem. If not, try:

      Code:
      img a {
         border:0px;
      }
      {{ DiscussionBoard.errors[5229514].message }}
  • Profile picture of the author ezbiz
    You can also define just the one code by adding an id to it.

    Add this within your tag;
    id="noborder"

    Then add this to your css file;
    #noborder {
    border:0px;
    }
    Signature
    Build Instant Mobile Sites with MyMobi Builder - Easy As WordPress
    Mobile Website Builder
    {{ DiscussionBoard.errors[5230255].message }}
    • Profile picture of the author msam029
      Yes this is the exact solution thanks for comming with solution
      {{ DiscussionBoard.errors[5231335].message }}
      • Profile picture of the author DaveC2
        Thank you very much for the solutions and offers of help.

        I must confess I worked around my original issue by inserting an image (rather than the HTML form code supplied by Paypal). I then hyperlinked from the image to the corresponding URL which Paypal also supply for inserting the button into emails. The image I inserted subsequently does not have the grey border that the original form did.

        The net result is that I have the same effect as I was trying to achieve in the beginning. It's also a bit easier for me to centre the button in Wordpress when it's an image rather than a HTML form.

        Dave
        {{ DiscussionBoard.errors[5237297].message }}
  • Profile picture of the author nethead01
    do you still need help with this? if so im willing to help via teamviewer, just send me a pm
    {{ DiscussionBoard.errors[5230377].message }}

Trending Topics