Hi all,
I made my theme using undercore and redux,
What i want to do next, is to have 2 header options: default and transparent header , and will be other 2 later.
Using Redux, i made my options
array(
‘id’ => ‘header_layout’,
‘title’ => esc_html__(‘Layouts’, ‘ralux’),
‘subtitle’ => esc_html__(‘select a layout for header’, ‘ralux’),
‘default’ => ‘default’,
‘type’ => ‘image_select’,
‘options’ => array(
‘1’ => array(‘alt’ => 'Default ', ‘img’ => RALUX_IMG_URI . ‘/1column.png’),
‘2’ => array(‘alt’ => 'Transparent ', ‘img’ => RALUX_IMG_URI . ‘/2columns.png’),
),
‘default’ => ‘2’,
),
img 1 is default header and 2 is transparent
In created my folder headers and here i have 2files header/header-default.php and header-transparent.php
But i don’t know how i have to add in header.php to be ok, and also how to make conection from what i choose in panel option theme ?
I know how to connection colors, image,background, i made all this, but to make, when choose transparent, my site to have header transparent, i don’t understand what to do next.
Many thanks for your help.