Categories
Technology WordPress

Customizing the Privacy Policy link in Genesis eNews Extended

You put together a brand new fancy Privacy Policy page on your WordPress 4.9.6+ site and are ready to include a link to is using the latest version of Genesis eNews Extended. That’s great!

This is a brand new feature, though, so themes aren’t styling for it yet. What can you do?

Styling

Using the Customizer via Apperarance->Customize within WP-Admin, you can add a small bit of “Additional CSS” to change this link’s styling however you’d like. The link is within a small html tag with a class of enews-privacy  with the a tag itself having the WordPress-wide privacy-policy-link class.

In other words, you can target specifically the eNews privacy link with something like:

.enews-privacy a.privacy-policy-link {
color: green;
}

Other CSS selectors, such as the a:focus and so on can be used too.

Changing the text

The text and the link itself is set by WordPress. You can use the the_privacy_policy_link filter (inline docs) to update the entire HTML block or the privacy_policy_url filter (inline docs) to update the overall link or only the URL. Alternative, you can update only the text by using the gettext filter (docs).

For example:

<?php // do not include in an existing php file

// This one works great if this is a secondary site of a company with one central privacy page. Example: Jetpack's site might want the link to always go to automattic.com/privacy/
function bk_change_the_url_only( $url ) {
return 'https://example.com/privacy/';
}

add_filter( 'privacy_policy_url', 'bk_change_the_url_only' );
Advertisements
Categories
Featured Technology WordPress

Genesis eNews Extended 2.1 Released

Genesis eNews Extended 2.1 is now available on WordPress.org. It has been a couple of years since a new version has been released—frankly, the plugin just works and it hasn’t needed much work.

Please note this version requires WordPress 4.9.6 and will not be offered unless you’re running WordPress 4.9.6+.

The European Union is preparing to implement this week their new data protection law, GDPR, which impacts Genesis eNews Extended and WordPress. If you have WordPress 4.9.6, released last week, you can setup a privacy policy page which Genesis eNews Extended will provide a link to under the subscription form, if you choose.

The feature respects the WordPress setting for the privacy page, as well as the various hooks implemented as part of the new feature for both the text of the link and the link itself. If any themes or plugins filters these value, the widget will use the same values to help site administrators set once and forget.

On a related note, I’ve fielded a few questions about how to add a checkbox to the widget for GDPR compliance. From my best understanding, this is not required. A subscription form that is exclusively for an e-mail subscription does not require a checkbox to confirm the visitor intent, since the action they are doing is the one and the same. If a form exists for any other purpose, then there does need to be a checkbox to confirm the visitor intent to also subscribe to a list.

Because of this, I am not adding an option to add a subscription confirmation checkbox to Genesis eNews Extended. It is meant to be a very simple plugin exclusively for newsletter subscriptions and while site owners are free to use it for other purposes, I’m only building and supporting the intended use as a mailing list subscription form “wrapper” that allow Genesis theme styles to have an easy time theming a “standard” subscription form.

Update: 2.1.1 was also released to fix a small issue with a bit of extra code displaying on the front end.

Categories
Featured WordPress

Genesis eNews Extended 2.0

Hold yer horses! Despite the major version bump, it isn’t a huge release! The changes are all under the hood, but there is a chance that the styling may break if your theme styles against the HTML ID of “subscribe”.

Previously, all instances of the widget would have the HTML ID of “subscribe” on the form element. This meant that if you had multiple instances on the same page, we were breaking HTML spec by having multiple elements with the same ID, which also wrecked total havoc for folks using screen readers and other assistive technologies. While I can’t recall a theme hitting that ID for styling, it is possible that someone was.

Genesis child theme authors should confirm their CSS is not targeting the form#subscribe node.

Categories
WordPress

Genesis eNews Extended with MailPoet Support

While Genesis eNews Extended has worked great with a many different mailing list services out of the box, I have heard from a number of y’all that you’d like to use it with MailPoet (formerly WYSIJA).

MailPoet is a plugin for WordPress that allows you to send newsletters from within the WordPress dashboard without needing a third-party service. Since it was internal to your site, it didn’t quite work with Genesis eNews Extended.

No more.

I’m proud to release version 1.4.0 of Genesis eNews Extended that has support for MailPoet built-in. If you don’t use MailPoet, that’s cool. Nothing is different for you (though there were minor code improvements).

If you have the MailPoet plugin activated, you’ll see an additional option in the widget settings:mailpoet-enews

If you have any issues, please open a thread on the plugin’s support page.

Major props to Maor Chasen of the MailPoet team for coding up this enhancement!

Polyglots Needed!

Multiple languages you have? I have setup a GlotPress install for eNews Extended to help ease improving the translations that come included in the plugin.

You can register for an account, then visit the GlotPress site to edit any of the current translations. If you know a different language, send me a note and I’ll add it.

Translations are now handled by WordPress.org.

Categories
Web Development

Genesis eNews Extended 1.3 Released

The latest and greatest version of Genesis eNews Extended has been pushed to the WordPress.org repo.This release adds two primary new features: Genesis 2.0/HTML 5 support and “userproofing” the Feedburner field.

Genesis 2.0 and HTML 5

The next version of Genesis is in beta now, which means it’ll be released soon (likely around the same time as WordPress 3.6 drops, which is also in beta). Among other features, Genesis 2.0 adds support for HTML5 in addition to the currently supported XHTML. The nice thing about the method used by StudioPress is that Genesis is fully compatible both ways. All new themes will be built using HTML5 while everything existing can still used XHTML. For eNews users, one noticeable advantage of using the HTML5 form is that the browser will check to verify that a visitor to your site inputs an actual e-mail address into the subscription form before submitting. If the user inputs something that couldn’t be an e-mail address, say “newsletter#brandonkraft.com” as a typo, most modern browsers will have some sort of notification that an invalid address was entered.

Feedburner

With Genesis 2.0, the older eNews widget that was part of the core Genesis project will be completely removed. Since I’m anticipating more Feedburner users (since that’s all the older widget supported) will be jumping into the eNews Extended pool, I added a helping feature for newcomers. The Feedburner setting has always been for simply the Feedburner ID, not the URL. Many users put the URL instead and has been a source of a plenty of support tickets. Now, if an user inputs the entire URL (e.g. http://feeds.feedburner.com/example instead of simply “example”), the widget will strip the URL out and retain only the Feedburner ID. I’m hoping this helps new users and reduce frustration when folks attempt to use the URL instead.

Who Should Update?

You. Everyone should update to this version. There are no additional system requirements for this version. While new Genesis 2.0 abilities have been activated, the plugin is fully compatible with Genesis 1.9.2 and will still serve the pre-existing XHTML markup to those users (myself included!) One final shout out to everyone who helped make eNews Extended better. A full list of financial, code, and translation contributors can be found at WordPress.org.

Download Now

You can download the plugin directly through your dashboard or visit WordPress.org.

Categories
Web Development

Genesis eNews Extended v1.1 Released

Version 1.1 of Genesis eNews Extended went out today with two features that will help you better customize your widget.