Modifying an Array
-
Hiya,
I’m trying to modify an array. In the following array in functions.php, I added a line to the end and created a snippet from this. I thought it would override the array in functions.php but I must be misunderstanding how it works. Any tips appreciated.
//* Add support for additional color style options
add_theme_support( ‘genesis-style-selector’, array(
‘enterprise-pro-black’ => __( ‘Enterprise Pro Black’, ‘enterprise’ ),
‘enterprise-pro-green’ => __( ‘Enterprise Pro Green’, ‘enterprise’ ),
‘enterprise-pro-orange’ => __( ‘Enterprise Pro Orange’, ‘enterprise’ ),
‘enterprise-pro-red’ => __( ‘Enterprise Pro Red’, ‘enterprise’ ),
‘enterprise-pro-teal’ => __( ‘Enterprise Pro Teal’, ‘enterprise’ ),
‘enterprise-pro-teal’ => __( ‘Enterprise Pro Teal’, ‘enterprise’ ),
‘custom-color’ => __( ‘ISSA Fort Worth’, ‘enterprise’ ),
) );
- The topic ‘Modifying an Array’ is closed to new replies.