Support » Plugin: Customizer Export/Import » Request: Support exporting more Divi footer options with widget in key name

  • dustysun

    (@dustysun)



    Hi,

    You may not be interested in supporting anything related to the Divi theme, but in case, I noticed that the Customizer Export/Import code strips out anything with ‘widget_’ in the key name. However, Divi has some footer widget options such as footer widget heading color, footer widget bullet color, etc., which aren’t exported as a result.

    Here’s the list of keys which are skipped when exporting with Customizer Export/Import:

    widget_header_font_size
    widget_header_font_style
    widget_body_font_size
    widget_body_line_height
    widget_body_font_style
    footer_widget_text_color
    footer_widget_link_color
    footer_widget_header_color
    footer_widget_bullet_color

    I’m not sure you would or should care about supporting another theme, but this is what I added to the code to get all of the Divi options to export on line 168 of class-cei-core.php:
    if ( stristr( $key, 'widget_' ) && !stristr( $key, 'et_divi') ) {

    It would be great if something like that could be added to your awesome plugin, but I understand if you aren’t keen on supporting another theme. As it stands, though, not all Divi options are being exported.

    Please let me know if you need anything else from me on this.

    Thanks for the great plugin!
    Steve Talley

    • This topic was modified 3 months ago by  dustysun.
Viewing 1 replies (of 1 total)
  • Plugin Author Justin Busa

    (@justinbusa)

    Hey @dustysun, thanks for the info. I think we can probably check to see if the key starts with widget_ instead of containing it. That should solve the problem for Divi and possibly other themes. I’ll try and get an update out with that change soon.

    Justin

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.