Posted: April 10, 2013 at 9:03 am
|
Hi there, I’ve read a lot about this problem however, the solution .off-site-payment-gateway br { only fixed the issue with extra br tags for the paypal option. Top and bottom of the EFT option are live links that do the same job as the eft link (opens and closes the EFT details. How can I remove them so the space is gone. I have tried wrapping shortcode in raw tags and div#off_site_payment_container br { display:none; } Running: WP 3.5.1 Recently upgraded from 1.????? http://harmonyathome.com.au/new/?page_id=378&r_id=16-51654a07cb71f Thanks in advance. |
Hi Clare, It looks like the theme is adding paragraph tags for each new line in the payment page template. The root of the problem can be solved by removing any theme functions that remove and replace the standard WordPress auto formatting functions. These can be commented out, please see this article for more information: http://theandystratton.com/2011/shortcode-autoformatting-html-with-paragraphs-and-line-breaks Here is a CSS workaround that’s more or less a band aid fix: #bank-payment-option-dv br{ display:none; } #bank-payment-option-lnk { height: 0; } |
|
|
Hi Josh, Thanks for your response. The first option is not very cut and dry, the only code I could find in the functions.php was this /* Add shortcode support in widgets */ Actually, I’m not even sure that post was referring to fuctions.php? The second option didn’t work either. Anything else I can try? Thanks
|
It might be a plugin. I’ve used the Super Skelton theme on another project and I don’t think that one removes the standard WP auto formatting. So you might try disabling any plugins that add shortcodes. Otherwise you could try adding the !important rule to the CSS: #bank-payment-option-dv br{ display:none!important; } #bank-payment-option-lnk { height: 0!important; } |
|
|
Hey Josh, !important didn’t work either. I’ll go through the plugins and let you know if I can track the culprit Thanks |
Hi Clare, It’s most likely the Shortcodes Ultimate plugin. If you go to the Shortcodes Ultimate settings page there is an option where you can disable its custom formatting. If you disable the custom formatting it will no longer add the extra paragraph and break tags everywhere. |
|
|
Beautiful Josh! Worked a treat. Thanks for your help on this, much appreciated 🙂
|
The support post ‘payment option extra space between paypal image and eft option.’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.