You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use background control multiple times like border controls but i am not able to do that. I am using this code and fonts are working properly but i am not able to use background multiple times ?
$advanced_fields['fonts']['content'] = array(
'label' => esc_html__( 'Content', 'mydivi-mydivi' ),
'css' => array(
'main' => "%%order_class%% .flipbox-content p",
),
'toggle_slug' => 'fboxstyle',
);
I'm afraid the background control doesn't currently support multiple instances like most of the other advanced fields do. This is something we can improve in the future though.
I am trying to use background control multiple times like border controls but i am not able to do that. I am using this code and fonts are working properly but i am not able to use background multiple times ?
$advanced_fields['fonts']['content'] = array(
'label' => esc_html__( 'Content', 'mydivi-mydivi' ),
'css' => array(
'main' => "%%order_class%% .flipbox-content p",
),
'toggle_slug' => 'fboxstyle',
);
$advanced_fields['fonts']['bbox'] = array(
'label' => esc_html__( 'Title', 'mydivi-mydivi' ),
'css' => array(
'main' => "%%order_class%% .front-icon-title",
),
'toggle_slug' => 'bboxstyle',
);
$advanced_fields['background'] = array(
'css' => array(
'main' => "%%order_class%% .mycontent",
),
'options' => array(
'background_color' => array(
'default' => et_builder_accent_color(),
),
),
'settings' => array(
'tab_slug' => 'advanced',
'toggle_slug' => 'fboxstyle'
)
);
$advanced_fields['background']['bbox'] = array(
'css' => array(
'main' => "%%order_class%% .mycontent1",
),
'options' => array(
'background_color' => array(
'default' => et_builder_accent_color(),
),
),
'settings' => array(
'tab_slug' => 'advanced',
'toggle_slug' => 'fboxstyle'
)
);
The text was updated successfully, but these errors were encountered: