• So I was trying to add some custom sidebars to some pages on my site, following one of the WP tutorials and I entered the following on the functions.php page

    <?php if ( function_exists (‘register_sidebar’)) {
    register_sidebar (‘custom’);
    } ?>

    and I got this error

    Parse error: syntax error, unexpected ‘<‘ in /home/cityfuts/public_html/wp-content/themes/bueno/functions.php on line 26

    the whole page looks like this

    [Code moderated as per the Forum Rules. Please use the pastebin]

    What do I do, I am freaking out!

Viewing 7 replies - 1 through 7 (of 7 total)
  • hi ,

    you are using <?php tagn inside <?php .

    Instead of using :

    <?php if ( function_exists (‘register_sidebar’)) {
    register_sidebar (‘custom’);
    } ?>

    Use

    if ( function_exists (‘register_sidebar’)) {
    register_sidebar (‘custom’);
    }

    thanks

    Thread Starter Joaquin Mariel

    (@joaquin-mariel)

    Can you clarify. I made the change you suggested and it did not work.

    Thanks for the quick response

    Thread Starter Joaquin Mariel

    (@joaquin-mariel)

    I am sorry, I did not know about having to use the pastebin. I am a newbie. I can not access woothemes either because the original designer purchased the theme and has the login. Is there anyone that can help me her?

    Have you asked the original designer for the login details? It’s your theme on your site, after all.

    Thread Starter Joaquin Mariel

    (@joaquin-mariel)

    Yes, that relationship did not end well so getting it from him will not work. Is there anything I can do without accessing the woothemes forum? Is there a different way I can post this question that would get a better response?

    Not really. Bottom line, this is a commercial theme and its template files are not publically accessible, so you need to seek support from the theme vendors.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Parse error: syntax error, unexpected '’ is closed to new replies.