badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Can not see the site after theme activation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27991
    bartolla
    Participant

    Hi.

    Thank you for the great theme.
    I’ve been using it for a long time but faced a problem: i don’t see my site after theme activation – the site doesn’t load with the atttitude theme. But it can be loaded with any other theme.

    Franklky speaking the problem occured after I changed the header.php file.

    I was trying to find a way to hide the header image on a specific page (194). As a solution a added this code:

    <header id=”branding” >
    <?php if (!is_page(‘194’)) { ?>
    <?php
    /**
    * attitude_header hook
    *
    * HOOKED_FUNCTION_NAME PRIORITY
    *
    * attitude_headerdetails 10
    */
    do_action( ‘attitude_header’ );
    ?>
    <?php } ?>
    </header>
    And it worked.

    After the theme was updated (I guess in may or june) I couldn’t load the site with attitude theme any more.

    The only log file a found (thanks to hoster support) was with the following mistake: [05-Sep-2015 23:44:58 UTC] PHP Fatal error: Cannot redeclare attitude_add_editor_styles() (previously declared in /home/analyzei/public_html/wp-content/themes/attitude/library/functions/functions.php:58) in /home/analyzei/public_html/wp-content/themes/attitude/library/functions/functions.php on line 57

    Can you give any advice at least were to start surching for the solution as after the last update in august the header.php file was changed automatically (i guess during the update).

    Thank you in advance,

    Sergei

    #28050

    Hi bartolla,

    We are not facing such problem. That means you have customized the code. While customizing the code did you create a child theme and then customized the code or you made direct changes in the code? If you made a direct change in the code then while updating to new version all your customized code will be lost. So we always recommended you to create a child theme before making any changes on it.

    The above error Cannot redeclare attitude_add_editor_styles() (previously declared in /home/analyzei/public_html/wp-content/themes/attitude/library/functions/functions.php:58) in /home/analyzei/public_html/wp-content/themes/attitude/library/functions/functions.php on line 57 you are facing because it has been declared more than one time. You cannot redeclare twice the same functions.

    Download the fresh copy of attitude theme and try it.

    Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.