| 开发者 | polymetric |
|---|---|
| 更新时间 | 2026年9月12日 16:41 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
rel="nofollow sponsored" support.nofollow sponsored rel, UTM auto-append (Pro), and per-post click tracking (Pro) - the controls an affiliate link actually needs, not a generic "add link" field.floatingcta folder to /wp-content/plugins/.Yes. Floating CTA uses standard WordPress hooks and minimal CSS that works with any properly coded theme. The bar is fixed-positioned and doesn't interfere with your theme's layout.
No. The total frontend footprint is approximately 7KB (CSS + JS combined) - no jQuery, no React. Scripts only load on posts where the bar is enabled, and the bar itself is rendered server-side, so it's in the page HTML on first paint with no flicker or layout shift.
Notification bar plugins are built for announcements and email signups - a text line and a button. Floating CTA is built for product recommendations: dedicated fields for title, image, star rating, and price, plus Product schema and affiliate-friendly link handling. Use a notification bar for a site-wide announcement. Use Floating CTA for "here's the product this post is about."
The free version works on posts only. Floating CTA Pro adds support for pages, WooCommerce products, and any custom post type.
Yes. The free version emits Schema.org Product with a nested editorial Review (rating and author) based on the data you enter for each bar. It skips itself when another plugin (Yoast, Rank Math, AIOSEO) already wrote a Product schema for the page, so you never get duplicate entities. Floating CTA Pro adds per-post disable and force-emit toggles for advanced control.
That's a Floating CTA Pro feature. Set a start and end time per post, and the bar shows only in that window. You can also add an optional countdown chip next to the price for time-limited deals.
Yes. By default, dismissing the bar hides it for the current page view only. In Settings > Floating CTA > General you can switch to "remember for N days," which stores the dismissal in the visitor's browser (localStorage, keyed to the post) - no cookies, and it keeps working with page caching.
Yes. The bar is rendered server-side into the cached HTML, so every visitor gets it. Dismiss state - whether it's per-page-view or remembered for N days - lives entirely in the visitor's browser, not in a cookie or a server-side session, so it never gets cached or served to the wrong visitor.
No. Floating CTA doesn't make any external requests, doesn't load third-party scripts, and doesn't run any tracking or analytics of its own. Everything - settings, per-post fields, dismiss state - stays on your site or in the visitor's browser. Floating CTA Pro click tracking, when enabled, stores click counts in your own database; nothing leaves your site unless you turn on the optional GA4 event integration.
fcta_frontend_data filter for the frontend JavaScript config object.fcta_uninstall_preserved_meta_keys filter. Add-ons can list postmeta keys the free plugin's uninstall should leave alone, so removing this plugin no longer wipes Floating CTA Pro's click history and schedules.Offer (price + availability) by default. On affiliate and review sites the Buy button points to a third-party seller, so an Offer on your own URL pulled pages into Google's Merchant listings program and triggered "missing shippingDetails / hasMerchantReturnPolicy / global identifier" warnings that an affiliate (or a service such as a financial product) cannot satisfy.fcta_schema_offer filter (default false) to restore the Offer node for sites that genuinely sell the item on their own domain.fcta_after_cta_button fires between the primary CTA and the dismiss button, letting add-ons place secondary buttons next to the primary CTA.fcta_settings_page_top (fires above the tab nav on Settings > Floating CTA). Lets add-ons render compact header toolbars.fcta_product_info_top (inside the product-info column above the title) and fcta_before_price_col (inside the inner flex row immediately before the price column). Lets Pro position badge/coupon-style add-ons near the title and price without DOM manipulation. No user-facing changes in free.fcta_after_render_bar with built-in conflict avoidance (skipped automatically when another plugin already emitted a Product schema)fcta_settings_tabs filterfcta_settings_tabs, fcta_schema_enabled, fcta_schema_avoid_conflictsfcta_bar_inline_css filter is now rendered correctly inside the <style> tag (previous esc_html() call HTML-encoded the CSS attribute-selector quotes, breaking add-on color overrides). </style> breakout still defended via string replacement.fcta_meta_fields, fcta_supported_post_types, fcta_should_show_bar, fcta_should_render, fcta_render_data, fcta_bar_classes, fcta_bar_inline_css, fcta_settings_defaults, fcta_register_settings, fcta_show_pro_section) and action hooks (fcta_before_render_bar, fcta_after_render_bar, fcta_bar_inside, fcta_after_settings_form, fcta_meta_box_after_fields) to let companion plugins extend behavior cleanly