Jump to content

Simple Php Code Help


vikas_newports

Recommended Posts

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:


 KkLG76G.jpg

Link to comment
Share on other sites

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:  

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.