Skip to content

color_rgba option not working #1983

@ghostpool

Description

@ghostpool

WordPress 4.1
Redux: 3.3.10.4
Integrated into theme

Hi there,

I'm using the following code to generate a semi transparent background colour:

array(
    'id'        => 'main_header_scrolling_bg',
    'type'      => 'color_rgba',
    'title'     => __( 'Scrolling Background', 'gp_lang' ),
    'desc'  => __( 'The scrolling main header background.', 'gp_lang' ),
    'output' => array( 'background-color' => '.gp-scrolling #sub-header' ),
    'default'   => array(
        'color' => '#fff',
        'alpha' => '0.9',
    ),
),

However when I look at the output code it only returns this:

.gp-scrolling #sub-header {
background-color: ;
}

The rgba value is not output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions