Shortcode suffusion-multic - top padding issue

Reports about issues that you encounter in Suffusion
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Shortcode suffusion-multic - top padding issue

Postby minty » 04 May 2012, 04:30

I'm trying to use the last shortcode example from here:
http://aquoid.com/news/themes/suffusion ... tionality/
to set up four 1/4 span columns.

It works fine except that each column seems to have increasing top padding. Example:

http://kuranuicollege.school.nz/kuranui-dashboard/ - it essentially uses this:

[suffusion-multic]
[suffusion-column width='1/4']A column with 1/4 the total width [/suffusion-column]
[suffusion-column width='1/4']A column with 1/4 the total width [/suffusion-column]
[suffusion-column width='1/4']A column with 1/4 the total width[/suffusion-column]
[suffusion-column width='1/4']Another column with 1/4 the total width[/suffusion-column]
[/suffusion-multic]

All those columns should have their red title buttons lined up at the top.

Any idea what's going on? Should I be doing this a different way?

Cheers,
Minty
minty
 
Posts: 34
Joined: 21 Sep 2010, 21:55

Re: Shortcode suffusion-multic - top padding issue

Postby sayontan » 04 May 2012, 06:22

This is a bit of a pain. The culprit is core WP and to fix this, don't start the shortcode in a new line. When you do that you will need to put a space at the start of each shortcode.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Shortcode suffusion-multic - top padding issue

Postby minty » 06 May 2012, 04:19

sayontan wrote:This is a bit of a pain. The culprit is core WP and to fix this, don't start the shortcode in a new line.


Heh. Okay, that's a workaround I can live with. Sorted now.

Thanks, Sayontan. You may want to add that as a note to your shortcodes page (and the code example there has an extra opening bracket, btw).
minty
 
Posts: 34
Joined: 21 Sep 2010, 21:55

Re: Shortcode suffusion-multic - top padding issue

Postby sayontan » 06 May 2012, 08:17

minty wrote:You may want to add that as a note to your shortcodes page.

It is already mentioned on the page:
Mind you, WP has a nasty habit of inserting <p> tags at line breaks, so you might have to be careful about stripping out new lines from the above code before using it.


(and the code example there has an extra opening bracket, btw)

That is due to a conflict with the SyntaxHighlighter Evolved plugin - when I wrote the page I figured that the one extra brace was the only way the rest of that code could be written without breaking.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Shortcode suffusion-multic - top padding issue

Postby minty » 06 May 2012, 15:56

sayontan wrote:
minty wrote:You may want to add that as a note to your shortcodes page.

It is already mentioned on the page:
Mind you, WP has a nasty habit of inserting <p> tags at line breaks, so you might have to be careful about stripping out new lines from the above code before using it.


I'm a moron. I scanned that as "careful about it stripping out new lines" ... ie, careful about WP stripping out new lines. I looked at my code and thought "Oh, good, it hasn't."

Duh. All good now. Many thanks, Sayontan!

Ps. Tendulkar might find less personality clashes in a nation of 1.25 billion than in the Indian cricket team :-P
minty
 
Posts: 34
Joined: 21 Sep 2010, 21:55


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron