Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple background control use problem #50

Open
SatishKumarPrajapati opened this issue May 2, 2018 · 2 comments
Open

multiple background control use problem #50

SatishKumarPrajapati opened this issue May 2, 2018 · 2 comments

Comments

@SatishKumarPrajapati
Copy link

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'
)
);

@elegantthemes elegantthemes deleted a comment from etstaging May 2, 2018
@lots0logs
Copy link
Member

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.

@IvanChiurcci
Copy link

any news on this @lots0logs ? Multiple instances of advanced fields of same type and also 'sub_toggle' support for them would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants