| 开发者 | shshakib2001 |
|---|---|
| 更新时间 | 2026年12月3日 14:38 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
src/Frontend/assets/js/scripts.js, elementor.js and src/Frontend/assets/css/style.css / shopshelf-grid.css sit beside their .min versions.src/Admin/assets/block/ is in the shopshelf-block/ folder. To rebuild it, run npm install and npm run build inside that folder (Node.js 20 or newer).src/Admin/assets/app/shopshelf-admin-app.js is in the shopshelf-admin/ folder. To rebuild it, run npm install and npm run build inside that folder (Node.js 20 or newer).swiper-bundle.js and swiper-bundle.min.js are the unmodified files from the official package.shopshelf-admin/package.json.[shopshelf id="12"].Yes. ShopShelf displays WooCommerce products and calls WooCommerce directly, so it needs WooCommerce installed and active.
Yes. Every feature described on this page is included in the free plugin.
Create a layout under ShopShelf → Add New Layout, choose the products and the design, and publish it. Then show it with the ShopShelf Layout block, a ShopShelf Elementor widget or the layout's shortcode, as described below.
Yes. Choose the Carousel layout. It has three modes (Standard, Center and Ticker), autoplay, five transition effects, arrows, dots and multiple rows, and you set the number of visible products for each screen size.
Yes. Under Filter Settings → Filter Builder, click Add Filter, choose Category and pick the categories to include. Tags and product attributes work the same way. Turn on Show as Live Filter to let shoppers switch between those categories on the page.
Yes. Columns, rows, slides to scroll and font sizes are set separately for each screen size, and the live preview lets you check the layout at desktop, tablet and mobile widths before you publish.
Yes. Choose one of the three pre-made templates, or select Custom to build the card yourself: reorder its parts, choose which ones appear, and style borders, spacing, colours and typography. For anything else, add your own CSS under Settings → Custom CSS & JS.
In the block editor, insert the ShopShelf Layout block and choose a layout from its list; it previews in the editor. An existing [shopshelf] shortcode or Shortcode block can be converted to it from the block toolbar.
Each layout also has a shortcode, shown in the layouts list and in the editor: [shopshelf id="12"]. Paste it into the classic editor, a text widget or a page builder's shortcode element. In a theme template, use <?php echo do_shortcode( '[shopshelf id="12"]' ); ?>.
Yes. Go to ShopShelf → Settings → Shop Page, switch on Enable Shop Page Integration and choose a Grid or List layout. Your shop page then shows that layout instead of WooCommerce's product grid; switch on Product Category Archives and Product Tag Archives to use it there as well. A Carousel is not offered, because a shop needs pagination. Product search results keep WooCommerce's own grid.
Yes. With Elementor active, the ShopShelf category in the widget panel has four widgets:
Check that the layout is published, then look at its filters: almost always they are narrower than the catalogue — a category with nothing published in it, or a Best Selling or Top Rated source on a shop with no sales or reviews yet. Clear the filters one at a time and preview after each.
Choose Color Swatch or Image Swatch as the attribute's Filter Type. Each term takes its colour or image from Products → Attributes → Configure terms, where ShopShelf adds a swatch field. Swatches set up in a variation-swatches plugin are used too. A term without one shows its name instead.
Yes. The popup shows WooCommerce's own variation form, so shoppers pick each option, see the price, image and stock of the chosen variation, and cannot add the product until every option is chosen.
Yes. Each layout is wrapped in its own element and its settings, filters and pagination are scoped to it.
Yes. Every layout is wrapped in an element with its own id, so a rule that starts with that id affects only that layout:
#shopshelf_wrapper-12 .shopshelf__item--title a { text-transform: uppercase; }
Add it with WordPress's own CSS editor: Appearance → Customize → Additional CSS, or Styles → Additional CSS in the Site Editor.
Yes. Copy any template from the plugin's src/Frontend/templates folder into a shopshelf folder in your theme, keeping the same path — for example yourtheme/shopshelf/item/title.php — and edit it there. Your copy is used instead of the plugin's and survives plugin updates. Tools → System status lists any overrides it finds, which is worth checking if a setting seems to have no effect.
No. Scripts, styles, icons and fonts are all served from your own site. The only outbound links are the optional social share links described under "External services" below, and they do nothing until a visitor clicks one.
Only if you agree. After activation, an administrator is asked once whether they are willing to share the site's address and a few version numbers with the ShopShelf developer. Nothing is sent unless you choose Allow & Continue; Skip (or closing the notice) sends nothing and is not asked again, and every feature works the same either way. You can change your answer at any time in ShopShelf → Settings → Privacy. See "External services" below for exactly what is sent and where.
Deactivating the plugin keeps everything. Deleting it from the Plugins screen removes its layouts and settings.
Open ShopShelf → Help in your dashboard for a guide to every setting. If you are still stuck, post in the support forum and include the report from ShopShelf → Tools → System status.
shopshelf_editor_mode_default filter sets the site's default editor mode.shopshelf_show_get_started_notice filter.shopshelf_hover_image_id filter chooses which image a card shows on hover.shopshelf_shop_page_replace and shopshelf_shop_page_options filters, and shopshelf_base_query_args and shopshelf_taxonomy_query for a layout's product query.shopshelf_show_review_notice filter.shopshelf_layout_saved action, fired when a layout is saved from the editor.shopshelf_skeleton_settings filter, and shopShelfFrontend.skeletonCards for add-ons that bring their own layouts.shopshelf_premade_flag filter, and pre-made templates you can override from your theme, under shopshelf/theme/.shopshelf:ready and shopshelf:products-loaded jQuery events, fired when a layout starts and after filters, pagination or Load More bring in new products.