brew icon indicating copy to clipboard operation
brew copied to clipboard

Redux - media

Open tornako opened this issue 10 years ago • 0 comments

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.

tornako avatar Mar 02 '15 23:03 tornako