• <?php if ( ‘__header’ == current_filter() ) : //when hooked on __header?>
    <div class=”container outside”>
    <h2 class=”site-description”>
    <?php tc__f( ‘tip’ , __FUNCTION__ , __CLASS__, __FILE__ ); ?>
    <?php bloginfo( ‘description’ ); ?>

    is the code I’m having issues with.
    (<h2 class=”site-description”>) is the line giving me problems.

    I was trying to take away the italicized tagline on the Theme “Customizr” and then I got this parse error.

    Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /home/content/45/12202345/html/wp-content/themes/customizr/parts/class-header-header_main.php on line 314

    Any Help? I’m a huge noobie 🙁

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is why we never edit core theme files. Instead, we use a child theme.

    Download a fresh copy of the theme you are using… then unzip it on your computer, and locate the ‘cusomtizr/parts/class-header-header_main.php` file.

    Now, upload this file to your server in the wp-content/themes/customizr/parts directory… over-writing the original (the one you edited).

    This should fix your site.

    Thread Starter Orts.Luis

    (@ortsluis)

    I did it, and it didn’t work unfortunately..

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