Forum Support

Shape 5
March 29, 2024, 01:55:56 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: PayPal buttons don't display correctly  (Read 439 times)
stormanf
Jr. Member
**
Offline Offline

Posts: 34



« on: February 02, 2016, 06:07:56 PM »

Hi,
I'm working on a website created with the Velocity template, and have run into a difficult problem. I've been creating PayPal buttons, but I cannot get them to display properly. When I insert the button code into the text editor, there is about 350px of what appears to be padding below the button, which, try as I may, I cannot get rid of! Take a look at the result: 
http://kingstonfestival2016.ca/giving-opportunities-2

When I load the same page in a page outside the Velocity template however, the button looks fine: 
http://kingstonfestival2016.ca/test/giving-opportunities-2.html

I'm at a loss as to what to do. I switched editors from the TinyMCE text editor to Code Mirror, but nothing seems to work. Any suggestions would be welcome!

Thanks!
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: February 03, 2016, 08:27:24 AM »

Hello,

You have an image at the bottom that is causing problems:

<img width="1" height="1" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" alt="">

In the template configuration you have the setting "Images Percentage Width" set to 100%. That will force all images to be 100% in width, including that image. Images stay in aspect ratio, so the height also increases. This is the code it is generating:

.s5_module_box_1 img, .item-page img, .blog-featured img, .blog img {
    box-sizing: border-box !important;
    width: 100% !important;
}

I would recommend removing that setting in the configuration unless you absolutely need it, it is a setting that is rarely used.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
stormanf
Jr. Member
**
Offline Offline

Posts: 34



« Reply #2 on: February 03, 2016, 11:02:06 AM »

Amazing, Mike...that's all I needed to do! Thanks so very much!
Charlie
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.