vikas_newports Posted March 25, 2020 Share Posted March 25, 2020 Hello I do not know anything about php I am using wordpress and I want to display a shortcode in header.php the shortcode will disply the information about crona-virus worldwide or for a specific country this is the code <?php echo do_shortcode( “[covid19 country=‘Pakistan’ title=‘Pakistan’]” ); echo do_shortcode( “[covid19 country=‘India’ title=‘India’]” ); echo do_shortcode( “[covid19]” ); ?> it show the data but all on left side I want to show it as middle or center i tried center code it only center the heading of Pakistan , India, Global (list line shortcode) can anyone help me to center the numbers of cases death recovered: Quote Link to comment Share on other sites More sharing options...
gizmola Posted March 25, 2020 Share Posted March 25, 2020 Hello Vikas, The positioning would be controlled by the layout, html markup and css. It would be helpful for you to share the actual plugin you are using, as there are many covid-19 plugins that have popped up. Without seeing the markup, people would just be guessing. In general you want to understand css positioning. Here's a fantastic introduction video that should help you understand this better, and perhaps solve the problem yourself: Quote Link to comment Share on other sites More sharing options...
vikas_newports Posted March 26, 2020 Author Share Posted March 26, 2020 9 hours ago, gizmola said: Hello Vikas, The positioning would be controlled by the layout, html markup and css. It would be helpful for you to share the actual plugin you are using, as there are many covid-19 plugins that have popped up. Without seeing the markup, people would just be guessing. In general you want to understand css positioning. Here's a fantastic introduction video that should help you understand this better, and perhaps solve the problem yourself: I have sent you private message can you check Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.