• Resolved leonbp10

    (@leonbp10)


    I am using tablepress with a purchased wordpress theme. I was originally having an issue with the theme’s table shortcode replacing the tablepress shortcode every time the page was updated. I resolved this issue by changing the name of the tablepress shortcode. I thought my problems where solved…but I was wrong.

    I still have a conflict with the tablepress shortode and the theme shortcode. All shortcodes in my theme are closed with [/endcode] (Example). The theme automatically adds this same code to the end of the tablepress shortcode.

    Example:

    new table shortcode: [uic-tbl id=1 /]
    After updating page: [uic-tbl id=1 /][/uic-tbl] (added by theme)

    Is there any way to remove the ” /” (space and forward slash) from the shortcode? I assume the theme is reading this as one of its own codes and adding the “close” tag.

    Great plugin!

    Thank you for any help.

    http://wordpress.org/plugins/tablepress/

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    So, just to confirm, you already changed the table Shortcode from TablePress to uic-tbl?
    That would mean that your theme is modifying Shortcodes that another plugin (TablePress in this case) added — which is very bad behavior by your theme. You should really ask the theme developer to stop doing this.

    Regardless, it’s no problem to remove the / manually in the post editor, i.e. you can change

    [uic-tbl id=1 /]

    to

    [uic-tbl id=1]

    manually after copy/pasting the Shortcode or after using the table button in the editor toolbar. If the theme then modifies this to

    [uic-tbl id=1][/uic-tbl]

    everything will still work fine.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Change Shortcode (not using tablepress extension)’ is closed to new replies.