Skip to content

marklchaves/ashtabula

Repository files navigation

Ashtabula - A Swiper Slider Plugin for WordPress

The official plugin is now available on WordPress.org.

https://wordpress.org/plugins/ashtabula/

Allows for the Use of Swiper.js in WordPress

This plugin allows you to use of the popular Swiper.js library in WordPress.

For Showing Responsive Cards in Slides

This is a minimalist plugin that is for displaying responsive cards in a slide.

  • On a large screen device, the slide will show a horizontal card (image on the left and text on the right).
  • On a small device, the slide becomes a stacked card with the image on the top and text on the bottom.

See the screengrabs below to get a visual.

Note: You should be comfortable with HTML and CSS to use this plugin.

Installation

  1. Manually upload the contents of the zip file of this repo to /wp-content/plugins/ directory or upload the zip via your wp-admin Plugins > Add New > Upload Plugin.
  2. Activate the plugin through the wp-admin Plugins page.

That's it!


Usage

  1. Use the demo HTML file as a starter template. Add this HTML to a HTML or code block/element to your page or post.
  2. To add the images, use the example CSS below as a template. Add the CSS to your Appearance > Customize > Additional CSS or your child theme's style.css file.

CSS example to specify the background image for the responsive card in a slide.

/**
 * Ashtabula - Swiper Slider Plugin Custom Styles
 */

#my-swiper-slide-1 {
 background-image: url(mybgimg-1.png);
}
#my-swiper-slide-2 {
 background-image: url(mybgimg-2.png);
}
#my-swiper-slide-3 {
 background-image: url(mybgimg-3.png);
}

How to add custom CSS to WordPress.

Live Demo

Visit the live demo site.

See the preview video.


Screengrabs

Desktop

Mobile


Release Notes

1.0.0

  • Now using a local copy of the Swiper 6.1.1 JS and CSS libraries.
  • Changed plugin directory structure to follow WordPress best practices.

I'll Drink to That ;-)

ko-fi

About

Allows WordPress support for the popular Swiper.js library.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors