Marketers Delight 5.2.2 Adds Rich Breadcrumbs, Style Tweaks, and Security Improvements

It’s MD update season and today I am happy to announce the release of Marketers Delight 5.2.2 which comes with a slew of bug fixes, improvements, and an important new feature release.

See What’s New in
Marketers Delight 5.2.2

MD5.2.2 is now waiting for you in your website’s dashboard! Go to Appearance > Themes to update your site now with the included bug fixes, enhancements, and more:

  • NEW: Add breadcrumbs to the top of all posts and pages
  • Style: Improved spacing for better mobile readability and overall reduces layout CSS weight and complexity
  • Security: Replaces the_title and the_content filters on various text areas with new md_text_field sanitize function #nerdspeak
  • Dropins: Docs 1.0.1 and Glossary 1.2.2 (minor compatibility updates)
  • See full changelog

Get Marketers Delight now

As the standalone version of Marketers Delight nearly turns 6 years old, today’s update further solidifies the stability and ease of growth that has been baked into this platform from all those years of development.

The star of this release is the new Breadcrumbs feature, which I will show you below, but as I sit to write this I can’t help but feel immense gratitude for all the years of refinement that makes sending powerful new releases like this to your site as easy as a few clicks.

Not only that, but the ease of developing MD has gone up over the years and it is so tightly integrated that adding new features like today can not only quickly blend into the interface, but offer no performance hit to your site.

It’s all of the other minor tweaks and adjustments made under-the-hood in MD5.2.2 and the over 100+ other releases over the years that have made today, and the future possible.

Now, enough of my soap box, let’s see what’s new in Marketers Delight 5.2.2!

Add Hyper Aware Breadcrumbs Navigation to Your Website

You’ve probably already noticed, the breadcrumbs at the top of this article add quite a bit of context to your current whereabouts on the Marketers Delight website, and now yours too.

Breadcrumbs are a staple feature of a deeply rich content site, and the reason behind the name is because they lead your visitors through your site almost as if they were following a trail of breadcrumbs…

In the screenshot above you can see an example from one of my Stream posts. The breadcrumb tells the whole story that you are on the MD website, on the Stream section within the Quick thoughts category.

At any time you can click to “move back” and find more content presumably related to the same current page. That’s quite a story to tell for such a simple list of links.

MD breadcrumbs cover just about every page scenario on your website:

  • Blog and front page
  • Blog posts
  • Blog categories
  • Blog tags
  • Pages
  • Child pages (one level deep)
  • Custom post types
  • Custom post type single entries
  • Custom taxonomies
  • Custom terms
  • Author pages
  • Search results page
  • 404 error page

Little did I know during recent rant about SEO plugins, I was taking one step forward towards developing this feature I had always traditionally left to breadcrumbs.

Between the trajectory of recent MD Dropins such as the Docs and the Glossary, as well as working with clients, I found myself rebuilding and reusing a breadcrumbs template that finally became clear it was time to make its way official into Marketers Delight.

Now that Breadcrumbs are now baked into MD, you’re going to love how easy it is to work with them. Here’s MD breadcrumbs from every angle:

Enable Breadcrumbs in MD > Site Design > Content Box

There is a new option in the MD Site Design panel that makes enabling breadcrumbs as easy as a click.

Fine-tuned control from the post and category editor

Like most MD features, you can toggle breadcrumbs on a page-by-page basis from the Post or Category editor. You can also add MD’s meta controls to custom post types using the md_post_type_meta filter.

Use breadcrumbs in development

By default breadcrumbs are hooked to md_hook_content and can be removed with the following action:

remove_action( 'md_hook_content', 'md_breadcrumbs', 5 );

Conversely, you can add it anywhere and to any hook by using add_action instead of remove_action.

A new helper function named md_has_breadcrumbs() has been introduced to check if the current page should load breadcrumbs. This function checks a post/page/category meta as well as the global setting.

Finally, the entire breadcrumbs template markup can now be found in the /templates/breadcrumbs.php file. Using the WordPress child theme system, you can completely override this template by copying its contents into your own /templates/breadcrumbs.php file in your child theme.

Also in MD5.2.2: Style Updates, Security Enhancements, and Other Bug Fixes

Marketers Delight 5.2.2 comes with a slew of other fixes and improvements. You can view the full list on the changelog but here are the notables:

Improved Mobile Spacing, Reduced Layout CSS Weight and Complexity

Maximizing page speed and performance without sacrificing flexibility for customization has always been a top priority, and MD5.2.2 continues to deliver on this promise while shipping new features.

You may not notice much visually but MD5.2.2 delivers a more optimized and consistent CSS framework. This makes spacing various layouts for mobile much easier, with far less need to write custom CSS—even in your own custom components.

Tip: if you have made custom spacing changes to elements within the main .content-box class, check your site on mobile after the update to ensure you don’t have double spacing. If so, find the extra spacing CSS you wrote and delete it—MD will now handle content box spacing way better!

Security and Plugin Compatibility Fixes

Lately there have been some ugly error messages being reported at the MD Forums that have to do with using the_title and the_content filters in WordPress.

These were always caused by a plugin (hi, WooCommerce) so I decided to replace all instances of these filters where they didn’t make sense in MD.

Without going into too much detail, MD was using these filters respectively to output Titles and Text description content throughout its features to apply certain formatting and character escaping to these text areas.

Now in MD5.2.2 any instance of:

apply_filters( 'the_content', $var );

Have been replaced with:

wpautop( $var );

Any instance of:

apply_filters( 'the_title', $var );

Have been replace with:

md_text_field( $var );

The md_text_field() function is new in MD5.2.2 and uses wp_kses()in combination with a list of approved HTML tags to safely render user-generated content, like short titles.

These functions are both necessary to ensure proper text formatting on the frontend of your website and also prevents any suspicious or unsafe code that somehow got saved to the database from rendering on your page.

Admin UI Improvements

A few changes were made across different MD admin settings pages, notably the Share and Optins screens which will fix a couple of out of place and “squished” admin controls.

Dropins Updates

The Docs and Glossary Dropin have both received minor compatibility updates.

MD Docs adds the now native breadcrumbs functionality and removes some old CSS in favor of MD’s default styles.

The Glossary gets a minor CSS cleanup as well to avoid any double-spacing on mobile.

Read the Dropin install guide to learn how to update. Essentially, just follow the same steps you did to install and overwrite the folders with the new versions.

Download MD5.2.2 Now

The latest version of Marketers Delight is waiting for you in your accounts area. Before updating, here’s a quick notes specific to this release:

  • If you use the Docs or Glossary Dropins, please update those in your child themes to the latest versions
  • If you’ve created any custom loops or custom templates within MD’s default content box, check on mobile to ensure there is no double spacing. If so, delete your left/right spacing as MD handles this much smarter

Get Marketers Delight now

See the full changelog

See the MD5.2.2 changelog for a full list of updates made in this release.

Start Building Websites That Delight

You can use the Marketers Delight WordPress Theme on unlimited sites. New features & updates are delivered to sites with your active license key.

Add to Cart

About Alex

Alex is the 27 year old creator of Marketers Delight.

Forum replies (15)Comments (0)

Loading new replies...

gauravtiwari

Blogger

176 messages 78 likes

Bug report: Shortcodes aren't rendering in optins. See: https://gauravtiwari.org/best-indian-bloggers/

Reply Like

gauravtiwari

Blogger

176 messages 78 likes

Also, taxonomies like tag and post_series are appearing in breadcrumbs and not categories.

Reply Like

Alex

MD developer

5,502 messages 1,432 likes

Bug report: Shortcodes aren't rendering in optins. See: https://gauravtiwari.org/best-indian-bloggers/

Most likely needs a patch in /dropins/optins/cta/templates/cta.php change line 16:

<?php echo wpautop( $fields['text'] ); ?>

to:

<?php echo wpautop( do_shortcode( $fields['text'] ) ); ?>

The downside of not being able to rely on the_content filter.

Reply Like

Alex

MD developer

5,502 messages 1,432 likes

Also, taxonomies like tag and post_series are appearing in breadcrumbs and not categories.

Example?

Reply Like

gauravtiwari

Blogger

176 messages 78 likes

Most likely needs a patch in /dropins/optins/cta/templates/cta.php change line 16:

<?php echo wpautop( $fields['text'] ); ?>

to:

<?php echo wpautop( do_shortcode( $fields['text'] ) ); ?>

The downside of not being able to rely on the_content filter.

This doesn't work. https://www.iceable.com/blog/stop-w... a function that,being saved in your database.

Can't execute shortcodes inside wpautop.

Reply Like

click to expand...
Alex

MD developer

5,502 messages 1,432 likes

This doesn't work. https://www.iceable.com/blog/stop-wpautop-messing-shortcodes/#:~:text=wpautop is a function that,being saved in your database.

Can't execute shortcodes inside wpautop.

This was a just a quick fix for you, do_shortcode() will make sure shortcodes render within wpautop no matter what. I will probably reevaluate a few areas and go back to using the_content filter, though the CTA box was where a possible WooCommerce filter error was found in the past.

Reply Like

click to expand...
gauravtiwari

Blogger

176 messages 78 likes

This was a just a quick fix for you, do_shortcode() will make sure shortcodes render within wpautop no matter what. I will probably reevaluate a few areas and go back to using the_content filter, though the CTA box was where a possible WooCommerce filter error was found in the past.

I did the edits. But that didn't work.

Reply Like

Alex

MD developer

5,502 messages 1,432 likes

I did the edits. But that didn't work.

Patch incoming.

Reply Like

Alex

MD developer

5,502 messages 1,432 likes

I did the edits. But that didn't work.

Ok, you can redownload MD and install it to Appearance > Themes. make sure you resave the MD settings afterwards. The shortcode issue should be resolved, I reverted that template back to what it was before. Thanks for working through this one.

I will examine the breadcrumbs next.

Edit: currently the breadcrumbs will take the most prominent term/category attached to it, which is usually the last tag or category added to the page. I will work on resolving this.

Reply Like

Leave a Comment

Start building your website with MD now

Get started with MD today. Pay once for use on unlimited websites.
* Save 40% on license key renewals every 12 months. Get auto-updates sent to 5 websites.

Labs

Get the latest MD sent straight to your inbox

There's always something new in the works in the MD Labs! Join the email list to get the newest content and releases sent straight to your inbox.*

Join the MD Newsletter

* I only email you when there's something new, or to share an exciting MD sneak peak.