• Resolved Madeline

    (@madelinepulley)


    I recently decided to start a new blog, moving from Blogger to WordPress. I have had trouble with a few things since day one (had to restore my laptop to get access to wp-admin). Anyway, I purchased the Genesis framework because I figured it would probably be the easiest to work with, and since I generally enjoy CSS, HTML, and all that jazz. Instead of diving right in (thankfully) and trying to whip up my own child theme, I decided to purchase a pre-made one so I can have time to get used to WP. Well, apparently the WP Gods don’t want me making a new blog because I have spent two weeks trying to figure out what is wrong with my functions.php file in my child theme. The designer issued me a refund because she couldn’t get it fixed either, but she said the theme was working for other people just fine.

    This is the error that is at the top of my messy, messy website.

    Notice: Undefined index: color in /home/*******/public_html/wp-content/themes/**********/functions.php on line 80

    Notice: Undefined index: color in /home/*******/public_html/wp-content/themes/**********/functions.php on line 80

    This is line 77-83 in my functions.php file –

    $colours = array( 'gray', 'black', 'white' ); // Array of possible colours, should correspond to style.css
    
        if( isset( $_GET['color'] ) & in_array( $_GET['color'], $colours ) )
            $classes[] = $theme . $sep . esc_attr( $_GET['color'] );
    
        return $classes;

    These are the things I have tried thus far…

    Putting ‘color’ in quotations instead.

    Deleting and re-downloading and reinstalling Genesis and the child theme.

    Changing the color style of Genesis.

    Putting an actual color, like black, where it says ‘color’.

    Somebody please help me, I feel like an idiot right now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m sorry but as you appear to be using a commercial theme, you need to seek support from the theme’s developer/vendor. We do not have access to, nor do we support, commercial products here.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Unfortunately we don’t provide support for commercial products. 🙁

    I can tell you though the folks over at Studiopress would be happy to help you out since you did purchase the theme and they know the code base much better. 🙂

    Thread Starter Madeline

    (@madelinepulley)

    Thank you, I will do that Jose!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘"Undefined index: color" Functions.php messed up?’ is closed to new replies.