methnen / m-chart

Manage data sets and display them as charts in WordPress.
Other
43 stars 22 forks source link

Themes and Oxygen Builder #151

Closed imjeffp closed 3 years ago

imjeffp commented 3 years ago

Since my WP site is built with Oxygen Builder, I don't have an active theme or even a theme folder to install a Highcharts theme into. Any suggestions? Or a set of step-by-step instructions to set styled mode to true from within the plugin?

methnen commented 3 years ago

@imjeffp this is a situation where the filter hooks are probably your solution.

Take a look at the m_chart_chart_args hook. The example code even shows exactly how you could use it to change the chart colors in the same ways as a simple theme.

Usually you would throw this into your functions.php file but since you aren’t using a traditional theme you won’t have one.

Instead you could create a simple one file plugin and put the code in there.

Here is a reasonably easy to follow example of how a single file plugin looks:

https://www.dreamhost.com/blog/how-to-create-your-first-wordpress-plugin/

Let me know how that works out for you or if you need any help along the way.