AI Verified

Name

Enable the Dynamic Content option in the Divi Number Counter module

About

This snippet enables Dynamic Content in the number field of Divi's Number Counter module. This would then allow you to control the content through a plugin such as ACF rather than the Divi Builder.

Language

PHP

Rating

Voted: 0 by 0 user(s)

How to Setup Snippet

• "Run snippet everywhere" in the snippet settings.

Codevault

Jamie

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.1

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

Website/ Profile URL:

https://www.jdab.co.uk

History

Last modified:

15/11/2023

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Enable the Dynamic Content option in the Divi Number Counter module

 
                    
1// Make the number field dynamic
2add_filter('et_builder_get_parent_modules', function($modules){
3foreach ($modules as $module_slug => $module) {
4if($module_slug === 'et_pb_number_counter' && isset($module->fields_unprocessed)){
5$module->fields_unprocessed['number']['dynamic_content'] = 'text';
6}
7}
8return $modules;
9});

0

Related Snippets

Please see some snippets below related to this snippet..

Divi Builder

Unverified

0

Mobile Menu – Replace Hamburger Menu with Text

Added: 8 months ago

Last Updated: 2 months ago

Change mobile menu from Hamburger to Text that shows open and close

Divi Builder

Unverified

1

Desktop Menu : Make Hamburger Menu on Desktop - Remove Bullets

Added: 6 months ago

Last Updated: 3 weeks ago

This snippet should be used with Make Hamburger Menu on Desktop.

Divi Builder

AI Verified

0

Disable the Elegant Themes buttons from the TinyMCE editor

Added: 10 months ago

Last Updated: 9 months ago

This snippet removes the custom Divi icons/buttons from the TinyMCE WYSIWYG editor/toolbar. These are the ET Learn Block, ET Box, ET Button, ET Tabs and Author Bio.

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WordPress Admin

AI Verified

1

Add custom post types to the At a Glance Dashboard widget

Added: 10 months ago

Last Updated: 9 months ago

This snippet adds your custom post types to the "At a Glance" widget on your WordPress Dashboard. By default, only Posts and Pages display, but this snippet will allow you to pull in counters for all...

WordPress Admin

AI Verified

0

Add icons to the custom post types in the At a Glance Dashboard widget

Added: 10 months ago

Last Updated: 9 months ago

This snippet adds custom icons to your custom post type counters in the At a Glance widgets on your WordPress Dashboard. I have a snippet in my Codevault on how to add CPTs to this widget too.

Divi Builder

AI Verified

0

Enable the Dynamic Content option in the Divi Number Counter module

Added: 10 months ago

Last Updated: 9 months ago

This snippet enables Dynamic Content in the number field of Divi's Number Counter module. This would then allow you to control the content through a plugin such as ACF rather than the Divi Builder.