Skip to Content
Menu

container_shortcode()

Add a Bootstrap container in the WYSIWYG editor.

WordPress June 27, 2018

Usage

WordPress
[container class style][/container]

Parameters

class
(Optional) (String) Additional classes to add to the container
Default: None

style
(Optional) (String) Additional styles to add to the container
Default: None

Request or provide clarification »

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!

    Source File

    Located in /libs/Shortcodes.php on line 178.

    WordPress
            public function container_shortcode($atts, $content=''){
                extract(shortcode_atts( array('class' => '', 'style' => ''), $atts));
                return '<div class="nebula-container container ' . esc_attr($class) . '" style="' . esc_attr($style) . '">' . do_shortcode($content) . '</div>';
            }
    

    Override

    To override or disable this shortcode, use add_shortcode() to declare the shortcode first.