I'm trying to add Tan to the color styles in the News theme. I added the Tan notation as below, but I get the message "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home4/marianna/public_html/findyourfamilyhistory.com/wp-content/themes/news/functions.php on line 25" (Line 25 is the one with the Tan notes.
/** Create additional color style options */
add_theme_support( 'genesis-style-selector', array(
'news-green' => 'Green',
'news-orange' => 'Orange',
'news-pink' => 'Pink',
'news-purple' => 'Purple',
'news-red' => 'Red',
'news-teal' => 'Teal',
'news-tan' => 'Tan',
I assume it wants ")" but I'm not sure where to put it. Can anyone please help?
I'm no PHP guru, but try it without the last comma after 'Tan'
Need Website Customization or a Responsive CSS fix? Contact Me
Thanks, Lynne. But I just tried it and I still get that error. I appreciate the suggestion, though.
If i copy and paste that code into a functions file to test it, it would return an error anyway because all the apostrophes have turned around.
Can you please paste the code from your functions file into a Github Gist or Pastebin and link to it from here.
This code is tested and works. Please copy the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++
Brad Dalton has written 1910 tutorials & 4000+ Code Snippets for Genesis & WordPress – Not For Hire.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!