MC4WP: Mailchimp Top Bar

MC4WP: Mailchimp Top Bar

توسط

Adds a beautiful, customizable sign-up bar to the top or bottom of your WordPress site. This bar is guaranteed to get the attention of your visitor and
increase your Mailchimp subscribers.

This plugin is an add-on for the Mailchimp for WordPress plugin.

Features

Mailchimp Top Bar adds a simple yet beautiful & customizable opt-in bar to the top or bottom of your WordPress site.

Using this bar, people can subscribe to a Mailchimp audience of your choice.

  • Guaranteed to boost conversions.
  • Unobtrusive, visitors can easily dismiss the bar.
  • Easy to install & configure, just select a Mailchimp audience and you’re good to.
  • Customizable, you can edit the bar text and colors from the plugin settings.
  • The bar can be at the top or bottom of the visitor’s screen
  • Lightweight, the plugin consists of just a single 2.6 kB JavaScript file.

More information

About the author

Mailchimp Top Bar is a plugin by ibericode, a company from The Netherlands that you may know from other plugins like Mailchimp for WordPress, Boxzilla Pop-ups and Koko Analytics.

Mailchimp for WordPress

Since this plugin depends on the Mailchimp for WordPress plugin, you will need to install that first.

Installing Mailchimp Top Bar

  1. In your WordPress admin panel, go to Plugins > New Plugin, search for Mailchimp Top Bar and click “Install now
  2. Alternatively, download the plugin and upload the contents of mailchimp-top-bar.zip to your plugins directory, which usually is /wp-content/plugins/.
  3. Activate the plugin
  4. Set your Mailchimp API key in Mailchimp for WP > Mailchimp Settings.
  5. Select a Mailchimp audience to subscribe to in Mailchimp for WP > Top Bar.
  6. (Optional) Customize the look & position of your opt-in bar.

سوالات متداول

How to disable the bar on certain pages?

For now, you will have to use a filter to disable the bar on certain pages. The following example only loads the Top Bar on your blog post pages.

add_filter( 'mctb_show_bar', function( $show ) {
    return is_single();
} );

Another example, this only loads the bar on your “contact” page.

add_filter( 'mctb_show_bar', function( $show ) {
    return is_page('contact');
} );

Have a look at the Conditional Tags page for all accepted functions.

How to add a name field to the bar?

You can use the following code snippet to show a “NAME” field in your bar.

add_action( 'mctb_before_submit_button', function() {
    echo '<input type="text" name="NAME" placeholder="Your name" />';
});

add_filter( 'mctb_subscriber_data', function( $subscriber ) {
    if( ! empty( $_POST['NAME'] ) ) {
        $subscriber->merge_fields['NAME'] = sanitize_text_field( $_POST['NAME'] );
    }

    return $subscriber;
});

KB: Add name field to Mailchimp Top Bar

How to hide the bar on small screens?

Adding the following CSS to your site should hide the bar on all screens smaller than 600px. The Simple Custom CSS plugin is great for adding custom CSS.

@media( max-width: 600px ) {
    &#35;mailchimp-top-bar { display: none !important; }
}

I think I found a bug. What now?

Please report it on GitHub issues if it’s not in the list of known issues.

I have another question

Please open a topic on the WordPress.org plugin support forums.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
1.7.4 40 کیلوبایت -
دانلود
×
★★★★★
★★★★★
4.6 /5 (30 نظر)

قیمت:

رایگان

نگارش

1.7.4

آخرین انتشار

11 اردیبهشت 1405

آخرین بروزرسانی

4 ماه پیش

نصب های فعال

7,000+

نگارش وردپرس

وردپرس 4.9+

تست شده از نسخه

وردپرس 6.9.4

نگارش PHP

PHP 7.4+

نسخه ها

1 نسخه