I am attempting to do the same thing, but rather than set the body as stretched, just change the primary color of the page. Below is my code in enfold-functions.php. It does not seem to be changing anything.
/* Load custom color scheme for each template file */
add_filter('avia_pre_prepare_colors', 'avia_pre_prepare_colors_mod', 10, 1);
function avia_pre_prepare_colors_mod($options) {
if ( is_page_template( 'bendfirepipesanddrums.php' ) ) {
$options['colorset-main_color-bg'] = '#821b22';
}
return $options;
}
Ismael, I took this same edit but added the is_page_template() function instead so that it would change based on the template being applied to the page, rather than a specific page id that could change and requires more work to maintain when making large edits to a website. However, is there a function to change the global theme color as well? Thanks for the help.