| 开发者 |
Ibericode
DvanKooten hchouhan lapzor |
|---|---|
| 更新时间 | 2026年6月22日 16:44 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-3.0-or-later |
| 版权网址: | 版权信息 |
Yes. Use the mctb_show_bar filter to control where the bar appears. This example shows it on blog posts only:
add_filter( 'mctb_show_bar', function( $show ) { return is_single(); } );
This example shows it only on the contact page:
add_filter( 'mctb_show_bar', function( $show ) { return is_page( 'contact' ); } );
See the WordPress Conditional Tags documentation for other conditions.
Yes. Add a name field and pass its value to the selected Mailchimp audience: ` add_action( 'mctb_before_submit_button', function() { echo ''; } ); add_filter( 'mctb_subscriber_data', function( $subscriber ) { if ( ! empty( $_POST['NAME'] ) ) { $subscriber->merge_fields['NAME'] = sanitize_text_field( $_POST['NAME'] ); } return $subscriber; } ); ` See adding a name field to Mailchimp Top Bar for more details.
Add this CSS to hide the bar on screens narrower than 600 pixels:
@media ( max-width: 600px ) { #mailchimp-top-bar { display: none !important; } }
The plugin keeps its front-end footprint small. Its JavaScript is under 2 kB when compressed, and the stylesheet loads without blocking page rendering.
Open a topic in the WordPress.org support forum.