Version

Now you can, easily!', 'svg-support' ); ?>

style-svg to your IMG elements, this plugin dynamically replaces any IMG elements containing the style-svg class with your complete SVG.', 'svg-support' ); ?>

embed, object or img tags alone.', 'svg-support' ); ?>



', 'bodhi_svgs_settings_restrict', checked( isset( $bodhi_svgs_options['restrict'] ), true, false ) ); ?>
', 'bodhi_svgs_settings_restrict', checked( isset( $bodhi_svgs_options['frontend_css'] ), true, false ) ); ?>
', 'bodhi_svgs_settings_advanced_mode', checked( isset( $bodhi_svgs_options['advanced_mode'] ), true, false ) ); ?>


', 'bodhi_svgs_settings_js_foot_choice', checked( isset( $bodhi_svgs_options['js_foot_choice'] ), true, false ) ); ?>
head of the HTML document. If this parameter is true, the script is placed before the closing body tag. This requires the theme to have the wp_footer() template tag in the appropriate place.', 'svg-support' ); ?>
', 'bodhi_svgs_settings_use_expanded_js', checked( isset( $bodhi_svgs_options['use_expanded_js'] ), true, false ) ); ?>

style-svg. You can change it to your own class such as my-class by typing it here.
Leave blank to use the default class.', 'svg-support' ); ?>
', 'bodhi_svgs_settings_auto_insert_class', checked( isset( $bodhi_svgs_options['auto_insert_class'] ), true, false ) ); ?>
img tags when you insert SVG images. Additionally, it will remove all of the default WordPress classes. It will leave normal image types as default and only affect SVG files.', 'svg-support' ); ?>
', 'bodhi_svgs_settings_force_inline_svg', checked( isset( $bodhi_svgs_options['force_inline_svg'] ), true, false ) ); ?>
Use with caution! Checking this will automatically add the SVG class to ALL image tags containing SVG file sources in the rendered HTML via javascript and will therefore render all of your SVG files inline.
Use case scenario: When using a visual builder such as in the Divi Theme or The Divi Builder, the class is not automatically added with the "Automatically insert class?" option selected or the builder module doesn\'t give you the option to manually add a CSS class directly to your image.', 'svg-support' ); ?>

'; _e( 'Usage', 'svg-support' ); echo ''; } else { echo '

'; _e( 'Advanced Usage', 'svg-support' ); echo '

'; } ?>

style-svg (or your custom class from above) to any IMG tags that you want this plugin to swap out with your actual SVG code.', 'svg-support' ); ?>

<img class="style-svg" alt="alt-text" src="image-source.svg" />
<img class="your-custom-class" alt="alt-text" src="image-source.svg" />




'; ?>

SVG Support please consider leaving a', 'svg-support' ); ?> ★★★★★

Leave a rating