I'm trying to set a default value for a media file, but have had no success :(
So hope it's something you can help me with.
array( 'id' => 'cpbg-opt-portfolio-main-menu-logo', 'type' => 'media', 'url' => true, 'title' => __('Main menu Logo', THEME_LANGUAGE_DOMAIN), 'desc' => __('Logo to be uset in the top menu ', THEME_LANGUAGE_DOMAIN),'', 'default' => 'http://designguide.tv2.dk/wp-content/uploads/2015/10/tv2_p_preview.png', ),
It's shows up with all other custom selection options, but no default selection is shown?
Hi support,
I'm trying to set a default value for a media file, but have had no success :(
So hope it's something you can help me with.
array(
'id' => 'cpbg-opt-portfolio-main-menu-logo',
'type' => 'media',
'url' => true,
'title' => __('Main menu Logo', THEME_LANGUAGE_DOMAIN),
'desc' => __('Logo to be uset in the top menu ', THEME_LANGUAGE_DOMAIN),'',
'default' => 'http://designguide.tv2.dk/wp-content/uploads/2015/10/tv2_p_preview.png',
),
It's shows up with all other custom selection options, but no default selection is shown?
Any help would be appreciated
Kind regards
Henning Mortensen
JUSTare
Kompagnistræde 22
1466 København K
Try
\'default\' => array(\'url\' => \'/your default url here\'),
thanks
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
Thanks :)
It worked like a charm :D