Problem is solved and the post can be closed thanks for the help
Hi Stefano,
Thanks for writing in! First of all, custom development is fall beyond our scope of the support. So I will try to give you an overall idea of how you can achieve this. First you need to prepare your external custom script in a WordPress friendly way, so that you should be able to use it’s shortcode.
Please refer to the following resource on how to create your own basic custom shortcode, so that you can integrate your custom script accordingly.
- (https://torquemag.io/2017/06/custom-shortcode/)
- (https://pagely.com/blog/the-guide-to-creating-custom-shortcodes-in-wordpress/)
Once you prepare your shortocde, you can use Raw Content element in Cornerstone and place your shortcode there.
Hope that helps.
Is possible to create in editor of the theme a custom php page? How to?
Hello Stefano,
Thanks for updating the thread.
Using page builder you are create a custom PHP page or template. For that you need to make changes into the theme files which falls outside the scope of support we offer.
To help you get started, you can refer following resources:
https://developer.wordpress.org/themes/template-files-section/page-template-files/
https://www.cloudways.com/blog/creating-custom-page-template-in-wordpress/
Thanks.
Hello Stefano,
There is an unclosed <p>
tag in the code above.
Have it updated and use this:
<div id="cartomanti"><p></p></div>
<script type="text/javascript">
function autoRefresh_div(){
jQuery("#cartomanti").load("/wp-content/themes/x/cartomanti.php", function(response, status, xhr) {
if (status == "error") {
// alert(msg + xhr.status + " " + xhr.statusText);
console.log(msg + xhr.status + " " + xhr.statusText);
}
});
}
jQuery( document ).ready(function( $ ) {
autoRefresh_div();
});
setInterval('autoRefresh_div()', 10000);
</script>
Best Regards.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.