kirki icon indicating copy to clipboard operation
kirki copied to clipboard

type => background image css syntax not quite right.

Open randomideas opened this issue 11 years ago • 5 comments

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

randomideas avatar Jul 09 '15 13:07 randomideas

Hi @aristath

Just want to follow about this issue.

Thanks,

Ryan

randomideas avatar Jul 15 '15 18:07 randomideas

Hey there,

I think @aristath just solved this in c4b90387b11c560db3aa09852a4dc9c4f2336ae8. Can you test again?

fovoc avatar Jul 15 '15 18:07 fovoc

Hi @fovoc

Should i overwrite class-kirki-output.php? Because already tried it but it gives me just a white page.

Regards,

Ryan

randomideas avatar Jul 15 '15 19:07 randomideas

Hey there Ryan, please try pulling again in case any typo have occured.

fovoc avatar Jul 15 '15 19:07 fovoc

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.

aristath avatar Sep 09 '15 02:09 aristath