Holiday Notice – Support Unavailable on April 18 and April 21
We just wanted to let you know that our support team will be offline on Friday, April 18th (Good Friday) and Monday, April 21st (Easter Monday) due to the holidays.
We'll be back on Tuesday, ready to assist you!
In the meantime, if you need any help, feel free to:
-
Use the support widget in the bottom right corner on our websites (Amelia and wpDataTables) — our latest AI-powered assistant is there 24/7 to help with basic and intermediate questions,
-
Browse our detailed documentation (Amelia, wpDataTables)
-
Explore helpful articles,
-
Or check out our YouTube channels for video guides!
Amelia YouTube Channel
wpDataTables YouTube Channel
Thank you for your understanding, and we wish you a wonderful holiday weekend!
Hi
We are using your the highcharts option in WpDataCharts, and the following code in the theme functions.php to reverse the Y-Axis of the front-end table.
function add_script_footer() {
if (is_page('Triathlon Race Results')){ ?>
<script type="text/javascript">
jQuery(window).load(function(){
if( typeof wpDataChartsCallbacks == 'undefined' ){ wpDataChartsCallbacks = {}; }
wpDataChartsCallbacks[1] = function(obj){
obj.options.chart.yAxis.reverse = true;
}
});
</script>
<?php }
}
add_action('wp_footer', 'add_script_footer');
This was working until the latest theme update. The theme update removed the code above. When I reinserted the code into updated theme function.php, both the data table and chart do not load [Please see attached screenshot]. I would like to know the following:
1) What is wrong with my code, and how do I get the chart to load with a reversed y-axis?
2) Where can I place this code such that theme updates do not delete it?
Thanks
Navin
HI Navin,
Thank you for your purchase.
As I can see this code should not affect the table if you have trouble loading table please try to see there are any js errors on that page.
You can put all js code on the every post page and in text tab and put your code between script tags and it should work.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables