Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

#Advert Slider Shortcode.

This shortcode was developed to create an ad unit displaying adverts for online casino's. The media from the different casinos media hub was 250px x 250px. The idea came from this slider on the Image Slider Maker website

I found a few bugs in the source and corrected the code where necessary

If you are using WP you can use the code in the slider.php file as it is. All you would need to is use the wp_enqueue_scripts action to integrate the JS and CSS file.

##Code to add to functions.php if using WordPress (Assumes you have added the css and js to your themes root directory)

function add_slider_scripts(){
wp_register_script(
'slider-js',get_template_directory_uri() . '/slider.js');
wp_register_style(
'slider-css',
get_template_directory_uri() . '/slider.css');
wp_enqueue_script('slider-js');
wp_enqueue_style('slider-css');
}
add_action('wp_enqueue_scripts','add_slider_scripts');

##License

GPL v.3

##Notes

The slider works equally well outside of WordPress all you would need to do is remove the WP source that allows WP to process the PHP aspect as a shortcode

About

Allows for images to be rotated in a slider

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.