• Hi – I’m new to Genesis, new to WordPress – was trying to add a search bar to my secondary nav menu and tried to paste some code into the functions.php section. It didn’t work, so I deleted the pasted code, but now I get this message:

    Parse error: syntax error, unexpected ‘.’ in /home/jkrlaw/public_html/wp-content/themes/genesis/functions.php on line 27

    There is no unexpected ‘.’ in line 27 and now my whole website is down.

    Can someone please just respond with the stock code that should be in Genesis Functions.php so I can get my site back up?

    Many thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    You can actually get that from Studiopress.

    Thread Starter ananansi

    (@ananansi)

    I can’t log on to Studiopress. . .

    Thread Starter ananansi

    (@ananansi)

    Is there anywhere else I can get those few lines of code???

    Thread Starter ananansi

    (@ananansi)

    This is what I have right now:

    <?php
    /*
    WARNING: This file is part of the core Genesis Framework. DO NOT edit
    this file under any circumstances. Please do all modifications
    in the form of a child theme.
    */

    /**
    * This file calls the init.php file, but only
    * if the child theme hasn’t called it first.
    *
    * This method allows the child theme to load
    * the framework so it can use the framework
    * components immediately.
    *
    * This file is a core Genesis file and should not be edited.
    *
    * @category Genesis
    * @package Templates
    * @author StudioPress
    * @license GPL-2.0+
    * @link http://my.studiopress.com/themes/genesis
    */

    require_once( dirname( __FILE__ ) . ‘/lib/init.php’ );

    Where is this syntax error?

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    You can ask the person who built the site/theme for you; other than that most people here don’t have access to that code.

    Thread Starter ananansi

    (@ananansi)

    No one built the theme for me. . . I just downloaded it from the theme bank. I’m not seeing a syntax error in line 27. Any help would be appreciated

    Thread Starter ananansi

    (@ananansi)

    I’m not even asking for the code at this point. I’m asking if anyone can see if there is a syntax error in line 27. . . .because i’m not seeing it.

    I only count 25 lines in that code snippet you posted.

    Thread Starter ananansi

    (@ananansi)

    Yes! thank you! I’m not seeing a line 27 at all . . . which is why I was asking for the stock code that comes with the Genesis theme. I’m not understanding the syntax error message to begin with

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Unfortunately we don’t provide support for commercial products. You can ask over on their forums and I’m sure they would be more than happy to help you out with that.

    I just downloaded it from the theme bank.

    And would that “theme bank” be where exactly?

    You should always download WordPress themes from trusted sources – if its not from the original Author then even they would have no way of knowing what other code has been added/removed to be able to give the required assistance!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Theme: Genesis] Need Functions.php code’ is closed to new replies.