type => background image css syntax not quite right.
Hello @aristath ,
Good day! I have this code below but when i tried to in the customizer. I am wondering why the background image does not appear real-time.
When i check the element, all i can see is this CSS header{background-image: IMAGE PATH;}
I check the correct syntax and it looks like this background-image:url("IMAGE PATH");
If you can check whats the issue with my code. Will be great!
$fields[] = array(
'type' => 'background',
'settings' => 'header_background',
'label' => __( 'Choose your header background', 'kirki' ),
'description' => __( 'The header background you specify here will apply to the header area, including your menus and your branding.', 'kirki' ),
'section' => 'style_set',
'default' => array(
'color' => 'rgba(25,170,141,0.7)',
'image' => '',
'repeat' => 'no-repeat',
'size' => 'cover',
'attach' => 'fixed',
'position' => 'left-top',
),
'priority' => 10,
'output' => 'header',
'required' => array(
array(
'setting' => 'style_op',
'operator' => '==',
'value' => 'header_o',
),
array(
'setting' => 'style_op',
'operator' => '!=',
'value' => 'nav_o',
),
array(
'setting' => 'style_op',
'operator' => '!=',
'value' => 'body_o',
),
array(
'setting' => 'style_op',
'operator' => '!=',
'value' => 'footer_o',
),
)
);
Thanks,
Ryan
Hi @aristath
Just want to follow about this issue.
Thanks,
Ryan
Hey there,
I think @aristath just solved this in c4b90387b11c560db3aa09852a4dc9c4f2336ae8. Can you test again?
Hi @fovoc
Should i overwrite class-kirki-output.php? Because already tried it but it gives me just a white page.
Regards,
Ryan
Hey there Ryan, please try pulling again in case any typo have occured.
Closing due to inactivity. @randomideas if the issue still exists then please feel free to reopen this and post an update on the current status.