Title: Shortcode Inline element
Last modified: February 7, 2017

---

# Shortcode Inline element

 *  Resolved [paullferguson](https://wordpress.org/support/users/paullferguson/)
 * (@paullferguson)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/shortcode-inline-element/)
 * Hi, Enjoying the simplicity of the plugin but after using it on a few sites now
   I’ve run into the same problem each time. Placing the shortcode in page content
   brakes the output out of the <p> as the shortcode output is wrapped in a <div
   >.
    Maybe a shortcode attribute of “inline” would work, using <span> instead.
 * Paul

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Florian Ziegler](https://wordpress.org/support/users/florianziegler/)
 * (@florianziegler)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/shortcode-inline-element/#post-8749255)
 * Hi Paul!
 * There is a filter you can use to change the output to any format you like.
 * A very quick way to change the `div` to a `span` would be the following:
 *     ```
       function my_theme_change_swarm_output( $output ) {
           return str_replace( array( '<div', '</div>'), array( '<span', '</span>' ), $output );
       }
   
       add_filter( 'whereabouts-swarm-output', 'my_theme_change_swarm_output', 10 );
       ```
   
 * Just copy the code into your theme’s `functions.php` and that’s it. 🙂
 * Cheers
    Florian
    -  This reply was modified 9 years, 2 months ago by [Florian Ziegler](https://wordpress.org/support/users/florianziegler/).
 *  Thread Starter [paullferguson](https://wordpress.org/support/users/paullferguson/)
 * (@paullferguson)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/shortcode-inline-element/#post-8818312)
 * Thanks for the quick response. Worked perfectly, thanks so much 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Shortcode Inline element’ is closed to new replies.

 * ![](https://ps.w.org/whereabouts-swarm/assets/icon-256x256.png?rev=1280887)
 * [Whereabouts: Swarm](https://wordpress.org/plugins/whereabouts-swarm/)
 * [Support Threads](https://wordpress.org/support/plugin/whereabouts-swarm/)
 * [Active Topics](https://wordpress.org/support/plugin/whereabouts-swarm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/whereabouts-swarm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/whereabouts-swarm/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [paullferguson](https://wordpress.org/support/users/paullferguson/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/shortcode-inline-element/#post-8818312)
 * Status: resolved