Home › Forums › Basel support forum › Additional social fields in administration panel in child theme › Reply To: Additional social fields in administration panel in child theme
August 7, 2016 at 5:57 pm
#2499
Mikle
Participant
There is a solution, but I think it is not optimal.
Just add in your child theme functions.php file next lines.
(Change all id, title and default params in ‘fields’ => array to appropriate for your case.)
Redux::setSection( "basel_options", array(
'title' => 'Social',
'id' => 'social',
'icon' => 'el-icon-group',
'fields' => array (
array (
'id' => 'vk_link',
'type' => 'text',
'title' => __('VK link', 'basel'),
'default' => '#'
),
array (
'id' => 'mm_link',
'type' => 'text',
'title' => __('MailRu link', 'basel'),
'default' => '#'
),
array (
'id' => 'ok_link',
'type' => 'text',
'title' => __('Odnoklassniki link', 'basel'),
'default' => '#'
),
),
) );
This code adds 3 fields for socials URLs in Theme settings -> Socials before all old fields.
It seems like it works, but, to do it right way you, probably, need to find some appropriate hook of ReduxFramevork, and bind function to it.