| 开发者 | amitry |
|---|---|
| 更新时间 | 2026年9月27日 18:57 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[amitry_slider] into any content areatitle_color and showArrowsMobile becomes show_arrows_mobile. The most used options also have short names, such as type, filter, count, aspect and fit.
[amitry_slider type="products" filter="newest" count="12"]
[amitry_slider type="products" filter="on_sale" slides_desktop="4"]
[amitry_slider type="products" filter="by_category" categories="12,15" aspect="each" fit="contain"]
[amitry_slider type="products" filter="manual" products="12,15,18"]
[amitry_slider type="products" effect="fade" fit="contain"]
[amitry_slider type="products" align="center" max_width="1140"]
[amitry_slider type="products" title="New in" title_color="#143a2e" show_arrows_mobile="false"]
[amitry_slider type="categories" sort="count" exclude="42,43"]
Values for filter: newest, bestselling, on_sale, featured, top_rated, by_category or manual. Values for aspect: auto, each, 1-1, 4-3, 3-2, 3-4, 2-3 or 16-9. Switches take true or false, and lists of product or category IDs are separated by commas.
Performance
wcsp_settings filter/wp-content/plugins/.[amitry_slider] shortcode.No. WooCommerce is required because the plugin reads WooCommerce products and product categories.
Add the Amitry Product & Category Slider block and set Show to Products, or add the Elementor widget and set Slider Type to Products, or paste the [amitry_slider type="products"] shortcode. No code is required.
Yes. Set Show to Categories in the block editor, or Slider Type to Categories in Elementor, to display a WooCommerce category carousel with images, names and optional product counts.
Only visually, and only if you want. The slider requests a proportional image and applies the shape you choose with CSS, so the file on disk keeps its real proportions. Set Image Fit to "Crop to fill" for uniform cards, or to "Show full image" to display the whole photo uncropped. Nothing is cropped on upload.
Yes, and you have three ways to handle it. 3:2 and 2:3 are built in alongside 1:1, 4:3, 3:4 and 16:9, if you shoot to one consistent ratio. "Automatic" shapes a single frame to suit whatever your photos actually are, which suits most shops. "Follow each image" gives every card the shape of its own photo, so a mixture of portrait and landscape all fill their frames with nothing cropped and nothing left over, at the cost of cards having different heights. Your files are never altered on upload.
Set the Max Width option. In the block editor it is in the Card Style panel; in the Elementor widget it is under Elements. The slider will grow no wider than that value and will center itself, which is useful on themes with a wide or full width content area.
Yes. The plugin declares compatibility with custom_order_tables. It does not read or write orders.
Yes. The block uses server-side rendering and works in any theme that supports the block editor.
Yes. A dedicated Amitry Slider widget is registered automatically when Elementor is active.
No. The slider only loads its CSS and JavaScript on pages where it is actually used, and Swiper is bundled locally instead of loaded from an external CDN.
Yes. You can set a different number of slides per view for desktop, tablet and mobile, and choose which navigation appears on each.
The slider supports keyboard navigation, and it respects the system reduced-motion setting: autoplay is disabled, transitions are instant and hover motion is removed.
Yes. The plugin uses standard WordPress internationalization and ships with a .pot file in /languages/.
Yes. You can see the product slider, category carousel and all premium designs in action on the live demo.
Yes. Set "Products From" to Featured to build a featured products slider. You can also pull from newest, best selling, on sale, top rated or a specific category.
Yes. Set "Products From" to "From Category", then pick the categories you want. It works the same in the block editor and in Elementor, and it is part of the free plugin. You can also use the category slider to display your product categories as a carousel instead.
Set Image Ratio (Image Aspect Ratio in Elementor) to "Automatic" and the frame takes the shape your photos actually are, rather than a preset you have to guess at. If nothing may be cropped at all, choose "Follow each image": every card then takes the shape of its own photo, so each one fills its frame exactly. Cards will vary in height, which is the price of never cropping and never leaving a gap. In "Show full image" any remainder is filled with the photo's own background color when it has a plain one, so a card still reads as one surface.
Yes. You can enable autoplay with an adjustable delay, pause on hover and seamless infinite looping.
Yes. You can choose a card style, image shape, aspect ratio, image fit, content alignment, max width, columns per device, gaps, shadows and hover effects, plus colors for titles, prices and buttons.
Yes. You can place a slider on any page or post, including the homepage, shop page, single product pages and landing pages, using the block, the Elementor widget or the shortcode.
Pro adds a thumbnail strip, a full screen lightbox, a hover zoom magnifier, a masonry grid view with a toggle, a category switcher for visitors, a load more button, hover image swap, automatic badges, AJAX add to cart, quick view, a sale countdown, a wishlist, stock indicators and four premium designs. The free plugin stays complete on its own, and Pro requires it.
Yes. The plugin offers filters and actions for add-ons, each documented in the source code where it runs: filters for the rendered classes, the card markup, the image size, the queries and the render attributes, plus actions around the render and inside the section head. For example, this switches on the optional query cache: add_filter( 'wcsp_settings', function ( $settings ) { $settings['queryCache'] = true; return $settings; } );