• Bijendra Meel

    (@bijendrameel)


    Hi

    I have to put pie chart and bar chart on my website as you can see in the screenshot of my ppt. I used plugin but that design will be same like other websites and I want unique design in my website. So tell me the css or any code that I can add to the post/page of my website where I want to place the chart.

    Screenshot: https://pasteboard.co/W3vj3jgDMNUX.png

    Thank you

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    If you want the chart on your home page, you’d need to edit the template that is used. Your home page appears to be an archive listing, so if you add the chart to the template, the chart will appear on any page using that template.

    To only have the chart on the front page, make a copy of your theme’s index.php template and name it front-page.php. Edit front-page.php’s HTML to include the necessary HTML to display the chart. Exactly where you place the HTML depends on where on the page you want it to appear. Be mindful of which parts are HTML and which are PHP. If you need to add HTML among PHP code, you need to include the PHP delimiters like so: ?><img src="example.jpg" /><?php. Only insert something like that after a PHP line termination, a semi-colon ; or on the very next line.

    When you edit or create new templates,such templates should be kept in a child theme.

Viewing 1 replies (of 1 total)

The topic ‘Chart’ is closed to new replies.