ibericode / mailchimp-top-bar Goto Github PK
View Code? Open in Web Editor NEWAdds a MailChimp opt-in bar to the top of your WordPress site.
Home Page: https://wordpress.org/plugins/mailchimp-top-bar/
License: GNU General Public License v3.0
Adds a MailChimp opt-in bar to the top of your WordPress site.
Home Page: https://wordpress.org/plugins/mailchimp-top-bar/
License: GNU General Public License v3.0
Have users choose an extra field to show next to the email field (optional).
http://youmightnotneedjquery.com/
fade
animation.show
and hide
methods with JS equivalenthtml
methods with innerHTML
and innerText
Times shown, times hidden, times submitted.
As it can only be sticky, when in bottom position.
Inherit from MailChimp for WP > Form Settings by default.
After update to version 1.26 the site does not work (white page admin and frontpage too). WP 4.4, PHP 5.6. (With version 1.25 is everything ok).
Fatal error: Call to undefined method MailChimp\TopBar\Plugin::init() in /.../public_html/wp-content/plugins/mailchimp-top-bar/mailchimp-top-bar.php on line 64
Hi, love the plugin, but I just noticed that on every page other than the home page the Menu is deactivated when the top-bar plugin is enabled. When I disable the plugin, the menu works again.
Have you had any other reports of the plugin disabling the Main menu?
To enable placeholder
attributes in browsers that do not yet support them.
After updating to 1.0.1 I receive the following message when trying to access the plugin settings:
You do not have sufficient permissions to access this page.
And the item no longer appears in the WP Mailchimp menu.
Looks like the top bar is defaulting to display:none. Is there a setting I am missing?
The top-bar hides the menu on mobile. The little triangle is too subtle for folks to toggle to hide the top bar.
Feature request:
Add an option to hide the bar as long as a visitor scrolls down to a specific point. For example if visitor scrolls down for 70%, the bar appears.
Since all reviews point to core plugin right now.
Let's start with just inheriting them from MailChimp for WP > Form Settings.
Hi,
I discovered a few days your 2 plugins : nice, usefull and very simple !
I installed them on a 1st website. No issue. Great experience.
So, I tried on a 2nd site, bigger but with a similar configuration (I thought) but no top bar...
http://www.urtikan.net
I looked for loaded JS, but nothing... no mailchimp-top-bar-js
I don't know where to look and why your wp_enqueue_script... is not successfull.
Maybe a plugin incompatibility ?
Only EMAIL
should be required for the opt-in bar.
Test responsiveness with popular themes.
I have for the moment write down this dirty code, because I found no way to modify options with your plugin :
$email_type = apply_filters( 'mctb_email_type', 'html' );
$listID = $this->options->get( 'list' );
$request_uri = $_SERVER['REQUEST_URI'];
if (preg_match("/^\/blog\/tous-les-lieux\//", $request_uri ))
$listID = "abcde1f23a";
$result = $api->subscribe( $listID, $email, $merge_vars, $email_type, $this->options->get( 'double_optin' ) );
do_action( 'mc4wp_subscribe', $email, $this->options->get( 'list' ), $merge_vars, ( $result === true ), 'form', 'top-bar' );
Do you have a better way to do it ? Tx
Have a bottom bar, or add some option that would allow when scrolling to hide the top bar and instead display it at the bottom.
From Update I mean, not showing a message that they already subscribed. Is this not being added because earlier only email field was allowed?
Simple cookie check
add_filter( 'mctb_show_bar', function( $show ) {
return ( ! isset( $_COOKIE['mc4wp_email'] ) && ! isset( $_COOKIE['_mctb'] ) ) || isset( $_POST['_mctb'] );
} );
Add-on with periodic checks
An add-on that will query the selected MailChimp lists for each subscribe element once a month to see if the email is still subscribed. Can get complex real quick though...
Use the mc4wp_email
cookie.
If more than the email field is marked as required in the MailChimp Dashboard, a notice will appear asking to change this. To get rid of this message, a refresh of the lists (under MailChimp & Licenses or MailChimp Settings) is needed. Might be a good idea to inform people of this in the same notice, because questions will be asked.
Those are "borrowed" from MailChimp for WordPress, we should make that more clear.
Maybe start out with a filter first?
Or use from MailChimp for WordPress?
Self-explanatory. This occurred to me when creating a "Thank you for subscribing" page -- would like to exclude the bar in that instance.
When the Admin bar is visible in the front-end, even if we close the top bar, as the z-index value of 999999 is applied to the entire wrapper, the WordPress admin bar becomes unusable.
To fix this, a z-index property can be applied to the "mctb-bar" and the "mctb-close" classes instead of the "mctb" class.
https://wordpress.org/support/topic/top-bar-covers-wordpress-admin-bar-1?replies=5#post-7960427
https://wordpress.org/support/topic/top-bar-covers-wordpress-admin-bar-2?replies=2#post-7965227
Right now, you can leave the color options empty and dequeue the stylesheet using wp_dequeue_style( 'mailchimp-top-bar' )
.
We could turn this into an easy option, but I'm not sure it'll be useful for regular users.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.