How To Center Short Code – Answers Short’n Sweet

How to center short code? Piece of cake. Simply add the following to your shortcode […] with the shortcode between the center start and stop: <center> </center>

<center>[… shortcode]</center

For instance, I was adding a set of world clocks using the widget “Saan World Clock” using Elementor (this should work regardless of the editor you are using). The shortcode for the world clock looks like:

[w_clock tz='America/New_York' f='LTS']

So to center it merely add the HTML centering code so that it looks like this:

<center> [w_clock tz='America/New_York' f='LTS'] </center>

… short’n sweet.

Leave a Reply

Your email address will not be published. Required fields are marked *