Вы можете поместить div-контейнер вокруг своего контента с уникальным именем класса.
function shortcode_func(){
return '<div class="your-unique-shortcode-class">...</div>';
}
add_shortcode( 'your-shortcode', 'shortcode_func' );
Чем вы можете добавить свою таблицу стилей с помощью функции wp_enqueue_style
.
function shortcode_footer_func() {
wp_enqueue_style( 'shortcode_styles', 'your/path/to/style.css');
}
add_action( 'wp_footer', 'shortcode_footer_func' );