Forums

Parse error: syntax error, unexpected ' (8 posts)

  1. Joaquin Mariel
    Member
    Posted 5 months ago #

    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!

  2. merajneesh
    Member
    Posted 5 months ago #

    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

  3. Joaquin Mariel
    Member
    Posted 5 months ago #

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

    Thanks for the quick response

  4. esmi
    Theme Diva & Forum Moderator
    Posted 5 months ago #

  5. Joaquin Mariel
    Member
    Posted 5 months ago #

    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?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 5 months ago #

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

  7. Joaquin Mariel
    Member
    Posted 5 months ago #

    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?

  8. esmi
    Theme Diva & Forum Moderator
    Posted 5 months ago #

    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.

Reply

You must log in to post.

About this Topic