I have overridden the slideshow shortcode. but after aupdate it doesnt work.
i have copied the new php code, but how get i hte right url of the the overriden css and js files.
thats is the old code:
function extra_assets()
{
//load css
wp_enqueue_style( ‘avia-module-slideshow’,get_stylesheet_directory_uri() . ‘/shortcodes/slideshow/slideshow.css’, array( ‘avia-layout’ ), false );
//load js
wp_enqueue_script( ‘avia-module-slideshow’,get_stylesheet_directory_uri() . ‘/shortcodes/slideshow/slideshow.js’, array( ‘avia-shortcodes’ ), false, true );
wp_enqueue_script( ‘avia-module-slideshow-video’,get_stylesheet_directory_uri() . ‘/shortcodes/slideshow/slideshow-video.js’, array( ‘avia-shortcodes’ ), false, true );
}
thats the new
function extra_assets()
{
//load css
wp_enqueue_style( ‘avia-module-slideshow’, AviaBuilder::$path[‘pluginUrlRoot’] . ‘shortcodes/slideshow/slideshow.css’, array( ‘avia-layout’ ), false );
//load js
wp_enqueue_script( ‘avia-module-slideshow’, AviaBuilder::$path[‘pluginUrlRoot’] . ‘shortcodes/slideshow/slideshow.js’, array( ‘avia-shortcodes’ ), false, true );
wp_enqueue_script( ‘avia-module-slideshow-video’, AviaBuilder::$path[‘pluginUrlRoot’] . ‘shortcodes/slideshow/slideshow-video.js’, array( ‘avia-shortcodes’ ), false, true );
}
but doesnt work
got it. missing slash! you can close it
Hi,
Great, I’m glad that you found the problem, and thanks for the update. I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.
Best regards,
Rikard