Custom module to inherit some parameters from theme options / global settings.

I am creating some custom modules to add them to a theme.

What I am trying to achieve is - Changing some of the theme options like color, typography will change those options for all used the modules as well.

Is there any way I can do this?

I am trying to use some kind of filter that will let me override defaults from the theme, but as I see - the css file is generated when user updates any page with page builder, so changing the theme color does not update that css file.

Is there some functionality like do_action that I can run after the theme options are updated that will regenerate the CSS for page builder? with changed theme color?

Any help in this would be very beneficial.

~ Nik

Hey Nick,

Welcome to the BB forums! :slight_smile:

I’ve already assigned another member of the team to assist you with your concern. :slight_smile:

Ben

Hey Nick,

Do you need the module settings to show the same values as those in the Customizer? Or would you just like to use Customizer values to style your module?

If it’s the later, you could pull Customizer values into your module’s includes/frontend.css.php file and style it there.

Let me know.

Justin

Thanks for your information, Justin!