Home>Support>Changing carousel widget (ajax)

Changing carousel widget (ajax)

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

I successfully changed the way carousel loads content by using siteorigin_widgets_template_file_sow-post-carousel filter.

Now I would like to load the content the same way also when loaded with ajax. And here comes the part, where I am not sure if it can be done in a proper way.

I could do it by changing the sow_carousel_get_next_posts_page() function, but this one is in so-post-carousel-widget.php file within the plugin’s folder.
However I want to keep the plugin upgradable, and not change the plugin main files, I want to keep modifications inside the theme.

It would be fairly easy to modify functions if they would be wrapped with “!function_exists” ie:
if ( !function_exists( sow_carousel_get_next_posts_page() ) ) {
sow_carousel_get_next_posts_page() {

}
}

Is there a way to load my own function instead of sow_carousel_get_next_posts_page()? If not, would you be willing to release an official update of the widget bundle which would allow such customization?

Thanks

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More