WP 3.3 upgrade messed up AutoFocus Post Page

  • Problem
  • Updated 3 years ago
Wordpress post page looks like this after upgrading to 3.3

Any fix for that?
AutoFocus v. 2.0.2 Pro
Photo of kio.me


  • 4 Posts
  • 0 Reply Likes
  • amused

Posted 3 years ago

  • 1
Photo of AxelYa


  • 548 Posts
  • 105 Reply Likes
Does it happen with AF theme only ? How about default theme ?

It might be wordpress bug, and not the theme.
Photo of HenriH


  • 10 Posts
  • 0 Reply Likes
I have the same problem. I am using the AF Theme. I don't see the problem if I switch to the default wp theme.

It seems to be a formatting issue with the post page and the AF "help" stuff. Probably related to the new menu/help system with WP 3.3.
Photo of AxelYa


  • 548 Posts
  • 105 Reply Likes
In autofocus-help.php find function shortcode_instr_text
and replace with
function shortcode_instr_text($help) {
$shortcode_instr_text = __('<h3>How to use AutoFocus shortcuts</h3>
<h4>[flickrgallery] </h4>
<p>Adds a flickr gallery to your post content.<br/>
<p><strong>Usage:</strong> [flickrgallery setid=&quot;52157624866504110&quot; limit=&quot;10&quot;]</p>
setid=&quot;Your-Flickr-Set-Id&quot; (Your Flickr Set ID should look like something this: 52157624866504110).<br/>
limit= &quot;#&quot; Replace # with the number of images you wish to show in the gallery (Default =&quot;10&quot;).</p>
<h4>[pullquote]</h4><p>Adds a pull quote about the project.<br/>
<p><strong>Usage:</strong> [pullquote foo=&quot;bar&quot;]%quoted text%[/pullquote]</p>
author=&quot;The Author&#39;s Name&quot;</p>
<h4>[largeimage]</h4><p>Adds a larger post image with a hovering description. Requires an image at least 800px wide.<br/>
<p><strong>Usage:</strong> [largeimage foo=&quot;bar&quot;]%large size image%[/largeimage]</p>
description=&quot;This is your description.&quot;</p>
<h4>[narrowcolumn]</h4><p>Adds a narrow paragraph area. Use 2 narrow columns together with left and right parameters to create a 2 column area.<br/>
<p><strong>Usage:</strong> [narrowcolumn foo=&quot;bar&quot; ]%content%[/narrowcolumn]</p>
<p>Visit the <a href="http://fthrwght.com/autofocus/#documentation" target="_blank">full documentation</a>.');

get_current_screen()->add_help_tab( array(
'id' => 'shortcode_instr_text',
'title' => __('Autofocus Shortcodes'),
'content' => $shortcode_instr_text,
) );

This is first draft
Photo of kio.me


  • 4 Posts
  • 0 Reply Likes

It fixed the post page.
The rest looks fine.
Photo of Stuart Herrick

Stuart Herrick

  • 4 Posts
  • 0 Reply Likes
great fix
Photo of Feri Macfričkins

Feri Macfričkins

  • 2 Posts
  • 0 Reply Likes
Photo of Marc-AntoineM


  • 13 Posts
  • 3 Reply Likes
Thanks! AxelYa always has the right answer.