• Resolved coyotewp

    (@coyotewp)


    Hello Devs, congratulations on your excellent work.

    In my theme there is a short code to display icons from another font family. An example code is this [icon color = “accent-color” icon_size = “” image = “linecon-icon-key”] I believe there must be some filter in your plugin that is changing the HTML output of this short code making the layout break and displaying <i class = “fas fa -“> </i> in place of the correct icon from the other font family, is there any way to avoid this? Disable or remove this filter? The interesting thing is that the problem does not occur everywhere on my site, because when I use the pagebuilder the problem does not appear, but when I use the php do_shortcode function to execute the short code of the other font family there the problem happens.

    Greetings

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author mlwilkerson

    (@mlwilkerson)

    Yes, this plugin does process the [icon] shortcode. Unfortunately, it sounds like that same shortcode is being used by more than one plugin. So the unexpected behavior you’re describing is just what I would guess would happen.

    There are currently no filters available in this plugin to disable its registration of the icon shortcode. And while it would be easy to add one (could you could fork the GitHub repo and do that in your own version of this plugin?), it seems that adding such a feature might conflict with the intended user experience for this plugin for typical users.

    However, in reading the documentation for the Shortcode API, it looks like you could use remove_shortcode() to remove the [icon] shortcode altogether. Then perhaps you could re-add the other plugin’s shortcode handling explicitly with add_shortcode().

    In summary, this plugin is not compatible with other themes or plugins that use the [icon] shortcode.

    Thread Starter coyotewp

    (@coyotewp)

    Ok, Thanks

    Thread Starter coyotewp

    (@coyotewp)

    I’ll try another way, maybe change the name of the other shortcode

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[NSFW] Conflict with shortcodes from other plugins’ is closed to new replies.