| 开发者 | nicholaseymann |
|---|---|
| 更新时间 | 2026年11月25日 06:46 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
[logo_wrangler] shortcode for page builders, widgets and the classic editorcooper-bold-logo-wrangler folder to /wp-content/plugins/, or install the ZIP from the WordPress plugin directory.[logo_wrangler] shortcode.Yes. Choose the carousel layout and the logos scroll continuously. The default strip layout stays still.
Use the [logo_wrangler] shortcode. Pipe-delimited example:
[logo_wrangler logos="/wp-content/uploads/acme.svg|Acme Corp" gap="28" base_size="48"]
For many logos, use comma-separated chunks: url|alt|link,url2|alt2. Raw JSON cannot be used in shortcode attributes (WordPress treats ] as the end of the tag); use the base64: prefix instead: logos="base64:W3sidXJsIjoiLi4uIn1d".
Yes. Use the block in the block editor, or paste the shortcode into any shortcode-capable area (classic editor, widgets, builder HTML modules). For Bricks and similar builders, create a collection under Logo Wrangler in wp-admin, then paste the shortcode snippet from the collection list.
Go to Logo Wrangler → Add New in wp-admin. Name the collection, add logos from the Media Library, set normalization options, and publish. Use [logo_wrangler collection="your-slug"] or pick the collection in the block sidebar. Inline logos shortcodes still work for one-off strips.
There is no built-in limit. Add as many logos as your collection or block needs; very large sets may affect page load time.
.cb-lw-inner > div > span > img), so existing CSS keeps working[balanced_logos], [logo_soup] and [cooper-bold-logo-soup] shortcodes, the cooper-bold/balanced-logos and cooper-bold/logo-soup blocks, and the balanced-logos.php loader. Use [logo_wrangler] and the Logo Wrangler blockactive_plugins optioncb-balanced-logos-* CSS classes and data-cb-balanced-logos-* attributes; cb-lw-* and data-cb-lw* are unchanged_cb_balanced_logos_*, _cb_logo_soup_*). Collections saved by 1.3.x still migrate automaticallycoopbolo-str_contains() with strpos() in the Splide Auto Scroll duplicate check, so standalone carousels render on PHP 7.4 without relying on WordPress's PHP 8 polyfillcoopbolo_ / COOPBOLO_ prefix for every PHP function, class, constant, the Logo Collections post type (coopbolo_collection), meta keys, the schema option, the collection form nonce and fields, list columns, and the REST route (coopbolo/v1)cb_logo_collection to coopbolo_collection once, on the first page load after updating. Their _cb_lw_* meta is copied to the new keys and kept until the collection is next saved. Older meta keys are still read as a fallbackcooper-bold-logo-wrangler-*window.COOPBOLO_DEBUG or ?coopbolo_debug=1.cb-lw-wrapper, .cb-lw-inner) are unchangedcb_lw_ prefix for the admin-screen helper, the collection form nonce, and the collections list columns[balanced_logos], [logo_soup] and [cooper-bold-logo-soup] shortcodes only when no other plugin already uses those namesbalanced-logos.php active_plugins entries on activate and plugin update only (not on plugins_loaded)src/ and package.json in the plugin ZIP and document the public GitHub repo so compiled build/*.js files can be regeneratedactive_plugins option on load. Legacy balanced-logos.php still loads the plugin if that path remains active; it does not change activation statecooper-bold-logo-wrangler), text domain, block (cooper-bold/logo-wrangler), shortcode ([logo_wrangler]), CSS/data attributes, and PHP identifiers[balanced_logos], [logo_soup], [cooper-bold-logo-soup]; blocks cooper-bold/balanced-logos and cooper-bold/logo-soup; CPT cb_logo_collection; meta keys _cb_balanced_logos_* and _cb_logo_soup_*splide-extension-auto-scroll@0.5.3 is the latest published npm release (the upstream repo's last commit was 2022-09-06); WP.org's out of date libraries check is comparing against a development branch with no new tagged releaseCB_LW_DEBUG, ?cb_lw_debug=1, or localStorage)cb-lw-hydrating visibility override)[class*="logo-soup"] descendant search)splide.refresh() when a theme autoscroll snippet is present — avoids mid-scroll reposition jerksplide script handle (load bundled Splide 4.1.4 instead)[logo_soup] shortcodes in Bricks _bricks_page_content_2 meta for early asset enqueuewrapper="full") enqueues Splide 4.1.4 core CSS/JS before view.js when Bricks/theme Splide is absentdiv > span > img) so Bricks builder preview matches frontend grid CSS without running view.js.cb-lw-inner > div > span for strip layoutlayout attribute (strip default, carousel for sliders)wrapper="slides" outputs slide fragments for nesting inside existing Splide lists; wrapper="full" outputs a standalone carousellogo-slider-slide class on carousel slides for Splide Auto Scroll compatibility.cb-lw-wrapper (outer) and .cb-lw-inner (logo row / hydration mount)admin_footer_text (removes redundant meta box text credit from 1.1.8)admin_footer_text (no overlap with version nags)collection and id attributessanitizePreviewConfig / toLwProps)