However, when trying to customize the look and feel using the WordPress theme customizer it tells me I need to upload files via FTP. If I set the wp-admin directory to be writable by the webserver process then this goes away. But I can’t see what files it’s trying to write
Anyone any ideas?
[Moderated: Signature removed. Please don’t sign your posts, because we can see who you are via your name and avatar. See https://www.ads-software.com/support/guidelines/#do-not-spam]
]]>I simply want to add colors
The themes customizer.php section, settings and controls look like this:
//Select the Default Theme Skin
$wp_customize->add_section(
'forest_skin_options',
array(
'title' => __('Choose Skin','forest'),
'priority' => 39,
)
);
$wp_customize->add_setting(
'forest_skin',
array(
'default'=> 'default',
'sanitize_callback' => 'forest_sanitize_skin'
)
);
$skins = array( 'default' => __('Default(blue)','forest'),
'orange' => __('Orange','forest'),
'green' => __('Green','forest'),
);
$wp_customize->add_control(
'forest_skin',array(
'settings' => 'forest_skin',
'section' => 'forest_skin_options',
'type' => 'select',
'choices' => $skins,
)
);
function forest_sanitize_skin( $input ) {
if ( in_array($input, array('default','orange','brown','green','grayscale') ) )
return $input;
else
return '';
}
I could simply change it to this to add colors:
//Select the Default Theme Skin
$wp_customize->add_section(
'forest_skin_options',
array(
'title' => __('Choose Skin','forest'),
'priority' => 39,
)
);
$wp_customize->add_setting(
'forest_skin',
array(
'default'=> 'default',
'sanitize_callback' => 'forest_sanitize_skin'
)
);
$skins = array( 'default' => __('Default(blue)','forest'),
'orange' => __('Orange','forest'),
'green' => __('Green','forest'),
'red' => __('red','forest'),
'yellow' => __('yellow','forest'),
'purple' => __('purple','forest'),
);
$wp_customize->add_control(
'forest_skin',array(
'settings' => 'forest_skin',
'section' => 'forest_skin_options',
'type' => 'select',
'choices' => $skins,
)
);
function forest_sanitize_skin( $input ) {
if ( in_array($input, array('default','orange','brown','green','grayscale', 'red', 'yellow', 'purple') ) )
return $input;
else
return '';
}
However, because of the theme updates, I need to add these options to the child theme which I’m having trouble doing.
I’m using the functions.php to call the new customizer.php in my child theme which is working fine but what should I put in my new child customizer.php to add these color options?
]]>I’m creating a child theme for Poloray (the free version) and I need to change some of the description text for the logo and the top feature image settings in the WP Customizer.
The description text is contained in the functions\customizer.php file.
I’ve done quite a bit of reading up on this but have come to a stand still as there seems to be very little documentation on how to override a parent theme’s Customizer options.
I tried uploading functions\customizer.php to my child theme and making the edit in there, but it does not override the parent options.
I did read this article: https://cssmary.com/wordpress/customizer-api-child-theme/
But got stuck as my understanding of the php being used is a little beyond my current knowledge so any help is greatly appreciated!
Thanks in advance.
]]>I sent number of message to the Arinio “hot”line, but absolutely no answer.
Does anybody know how I could get information ? is the developper still alive ?
Thanks
]]>Warning: Creating default object from empty value in /home/emrais/public_html/ii/wp-content/themes/follet/includes/customizer.php on line 43
The error appears where the nav bar should be. I can get it to go away by commenting out line 43 in customizer.php, but the nav bar itself also disappears, regardless of if show navigation is checked.
]]>I’ve had a problem when I introduced a pluging code at the end of the customizer.php code.
I dont have acces to my WordPress desktop and if I search my web, I found tis message: Parse error: syntax error, unexpected end of file in /home/content/p3pnexwpnas03_data03/36/2333636/html/wp-content/themes/matheson/library/customizer.php on line 369
I eliminated the plugin code but it doesn’t work.
Thanks for your help.
]]>