I am creating a feature for my website using a WordPress shortcode. The shortcode is displays an HTML table that contains certain data.
I have enabled the short code for widget/sidebar and it is working fine in the widget.
The only problem is that my designer has created two different styles; one for post and another for widget. Is there any way to know that the code is being executed in sidebar or in post?
//add stylesheet for widget here
//add stylesheet for post here