• Resolved gvasudeva

    (@gvasudeva)


    Hi, I installed a theme for making a wordpress website…. created my first page… & got this error message at the bottam …
    Parse error: syntax error, unexpected T_IF in/home/XXX/public_html/wp-content/themes/e+/e/sidebar-footer.php on line 1…

    Can someone please help…. as i am new to this..& trying to learn Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Are you able to still access the Dashboard and change themes? If so, just activate another theme.

    If not, use FTP (or other file manager program your host uses) to delete the theme from the themes folder.

    Where did the theme come from?

    Thread Starter gvasudeva

    (@gvasudeva)

    Yes.. i can access dashboard & can change themes as well…. But i need to use this theme only as i bought it… This came from themeforest.com

    Something in sidebar-footer.php, or something that is being pulled in on that file has a syntax problem. What is the code on the first line of that file (sidebar-footer.php)?

    Thread Starter gvasudeva

    (@gvasudeva)

    This is what i think… Here it is….

    <?php/*** The Footer widget areas.**/?><?php/* The footer widget area is triggered if any of the areas	* have widgets. So let's check that first.	*	* If none of the sidebars have widgets, then let's bail early.	*/if (   ! is_active_sidebar( 'first-footer-widget-area'  )		&& ! is_active_sidebar( 'second-footer-widget-area' )		&& ! is_active_sidebar( 'third-footer-widget-area'  )		&& ! is_active_sidebar( 'fourth-footer-widget-area' )		&& ! is_active_sidebar( 'fifth-footer-widget-area' )		)return;// If we get this far, we have widgets. Let do this.?><div id="footer-widget-area-background"><div id="footer-widget-area" ><?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?><div id="first" class="widget-area"><ul class="xoxo"><?php dynamic_sidebar( 'first-footer-widget-area' ); ?></div><!-- #first .widget-area --><?php endif; ?><?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?><div id="second" class="widget-area"><ul class="xoxo"><?php dynamic_sidebar( 'second-footer-widget-area' ); ?></div><!-- #second .widget-area --><?php endif; ?><?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?><div id="third" class="widget-area"><ul class="xoxo"><?php dynamic_sidebar( 'third-footer-widget-area' ); ?></div><!-- #third .widget-area --><?php endif; ?><?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?><div id="fourth" class="widget-area"><ul class="xoxo"><?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?></div><!-- #fourth .widget-area --><?php endif; ?><?php if ( is_active_sidebar( 'fifth-footer-widget-area' ) ) : ?><div id="fifth" class="widget-area"><ul class="xoxo"><?php dynamic_sidebar( 'fifth-footer-widget-area' ); ?></div><!-- #fifth .widget-area --><?php endif; ?></div><!-- #footer-widget-area --></div><!-- #footer-widget-area-background -->

    Unfortunately, these forums don’t support commercial themes so can only suggest you contact the developer for help.

    Thread Starter gvasudeva

    (@gvasudeva)

    ??

    Theme Forest provides support for their themes – it’s part of what you paid for – so what is the problem with asking them?

    Thread Starter gvasudeva

    (@gvasudeva)

    They couldnt help me much.. & that’s why i am here…!!

    We do not support commercial themes as you paid for support when you bought the theme. It is not our place to keep theme vendors in business.

    So, I see we aren’t supposed to help since it is a commercial theme……but……If I were you, I would remove the comment at the beginning of the file. I didn’t try to troubleshoot the problem, but it stuck out to me as looking kind of messed up as I glanced at it. That’s all I will say and won’t post again in this thread (I don’t want to break rules and get in trouble!) ?? ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Parse Error’ is closed to new replies.