Welcome! To use this support forum, please Login or Join Today!

   

Shortcodes misbehaving

{name}
Rank

Total Posts: 17

Joined 2011-09-12

PM

 

Hi, This should be a quick one.
I am using the [one_fourth] shortcode to format some content and the 4th column is being pushed down to the next line.

The page being affected is http://qa10.mycarfinder.com.au/?page_id=8

Thanks.

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

You should append the _last suffix to the last column (so that no right margin and proper clearing is applied).

Example: (notice lines 10 & 12)

[one_fourth]
...content…
[/one_fourth]
[one_fourth]
...content…
[/one_fourth]
[one_fourth]
...content…
[/one_fourth]
[one_fourth_last]
...content…
[/one_fourth_last]
{name}
Rank

Total Posts: 17

Joined 2011-09-12

PM

 

Thankyou. I thought it would be something like that (the Presstige shortcode guide didn’t show it).

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

Yes, I’m working on a centralized place for shortcodes.
It should be in the editor though:
insert_shortcodes

{name}
Rank

Total Posts: 17

Joined 2011-09-12

PM

 

I probably should have remembered this was here. I usually fill in content using HTML view and code it all manually.

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

yeah, same here. I use TextExpander and just type “do3col” and it pastes the last three items on my clipboard in each block. I think there’s a Windows-like program out there somewhere. Very useful.

{name}
Rank

Total Posts: 17

Joined 2011-09-12

PM

 

Notepad++ is quite good for windows. It recognizes and formats keywords for php, aspx, c, html, css etc. Quite a good little app for basic coding and making updates.Not quite the same thing though.

{name}
Rank

Total Posts: 17

Joined 2011-09-12

PM

 

Casey, this still looks to be an issue in internet exploder - Appending last fixed the problems in all other browsers.

Do you have a fix for this?

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

It looks like the social bookmarks are causing this. Try adding a [clear] tag just before the columns.

{name}
Rank

Total Posts: 17

Joined 2011-09-12

PM

 

That didn’t seem to work. What else can I try?

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

I’m looking at http://qa10.mycarfinder.com.au/?page_id=8 in IE8. What browser does the problem occur in?

{name}
Rank

Total Posts: 17

Joined 2011-09-12

PM

 

The page is correct, its happening in IE7.

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

I was trying to debug this for you but am now getting an error 500.
“Error establishing a database connection”

{name}
Rank

Total Posts: 17

Joined 2011-09-12

PM

 

Apologies, its up and running again. This seems to happen with my host every few weeks and I need to get support to fix it. I’ll be moving to a linux hosting environment for the live site!

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

Try opening master.css
(http://qa10.mycarfinder.com.au/wp-content/themes/presstige/css/master.css) and change:

.one_fourth { width: 22%; }

to:

.one_fourth { width: 21.5%; }

 

{name}
Rank

Total Posts: 17

Joined 2011-09-12

PM

 

That seems to have done the trick. Ill do a similar fix for the other presets also.

Thanks again for finding a solution so quickly.