Support » Themes and Templates » functions.php Error On My WordPress theme

  • I just installed a custom theme I made and when I previewed it this is the error message that I got. What does this mean?

    Call to undefined function function_exist() in D:\Hosting\8591032\html\wp-content\themes\CMYK\functions.php on line 2

    This is the code I typed down.

    <?php
    if ( function_exist(‘register_sidebar’) )
    register_sidebar(array(
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));
    ?>

    And this is what it looks like so far and I’m trying to get it to show up when I preview it.

    https://picasaweb.google.com/lsrms3977/May82012#5740294635039132338

    How can I fix that so that way my theme appears when I preview and activate it?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘functions.php Error On My WordPress theme’ is closed to new replies.