• Resolved PoisonRose79

    (@poisonrose79)


    Hi,

    I’m using a plugin called MaxButton to create buttons. Like Columns it uses shortcodes. The problem I am having is that the MaxButtons shortcodes won’t work inside the Columns code. Is there a way to resolve this so both shortcodes will work?

    The codes for the buttons simply look like this:
    [maxbutton id="#"]

    Advanced Graphics Systems look down the page and you’ll see the shortcodes in each column for the buttons. They are created using CSS which is places inside my templates style sheet.

    https://www.ads-software.com/extend/plugins/columns/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there,

    I am having a similar issue where my gravity form will not display within a column.

    Looking at your website it seems that you’ve solved it. How did you solve it?

    I had a similar problem using this plugin with another plugin that uses shortcodes. Basically, if you nest another shortcode within the columns shortcodes, it doesn’t get processed.

    I did a bit of digging, and I discovered that this shortcode doesn’t seem to process the content through the do_shortcode function after processing it with its own changes. I added a single line to the plugin file, and it worked.

    Look for this in columns.php:

    $content = str_replace( 'class="column column-number-' . $count, 'class="column column-number-' . $count . ' last', $content );

    and add the following directly after:

    $content = do_shortcode( $content );

    This was a quick and dirty fix for me — hopefully it helps someone else. Remember, this is a change to the core plugin code, so if the plugin is updated (without this fix), you run the risk of losing the change.

    Plugin Author Konstantin Kovshenin

    (@kovshenin)

    This should be fixed in 0.7.1. Let me know if you need further help!

    Thanks mburtis and Thanks Konstantin

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Button codes won't work inside [columns]’ is closed to new replies.