Skip to content

Redux - media #45

Description

@tornako

Hi, in the header I want to put the option to insert an image as logo. But the "image default" option does not work for me. My code in the "option- config.php" file:

$this->sections[] = array(
                'icon' => 'fa fa-hand-o-up',
                'title' => __('Header', 'brew-framework'),
                'fields' => array (
                    array(
                        'id'=>'logo_header',
                        'type' => 'media',
                        'url'=> true,
                        'title' => __('Header Logo', 'brew-framework'),
                        'compiler' => 'true',
                        //'mode' => false, // Can be set to false to allow any media type, or can also be set to any mime type.
                        'desc'=> __('Upload your logo, optimal size for logos is between 250px wide and 150px high.', 'brew-framework'),
                        'subtitle' => __('', 'brew-framework'),
                        'default'  => array(
                                'url'=> get_template_directory_uri() . '/library/images/logo-default.png'
                            ),
                        ),
                    ),
                );

I uploaded the image "logo- default.png" in the directory "/library/images/". I do not know why it does not work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions