• Hi, I wanted to customize the header of my blog and I did something wrong. Know I can′t even open the web and this message is shown:
    “Parse error: syntax error, unexpected ‘else’ (T_ELSE) in /homepages/4/d471838597/htdocs/wp-content/themes/mixfolio/inc/custom-header.php on line 50”

    What I did wrong is introduce in the original custom-header.php with this (replacing the original):

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    $defaults = array(
        'default-image'          => '',
        'random-default'         => false, manualmente
        'width'                  => 0,
        'height'                 => 0,
        'flex-width'             => false,
        'flex-height'            => false,
        'default-text-color'     => '',
        'header-text'            => true,
        'uploads'                => true,
        'wp-head-callback'       => '',
        'admin-head-callback'    => '',
        'admin-preview-callback' => '',
    );
    add_theme_support( 'custom-header' , $defaults );

    Thanks!

    https://www.otraformade.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Step number one is get a fresh copy of that commercial theme from the vendor and undo what you’ve done on that file.

    https://graphpaperpress.com/themes/mixfolio/

    We don’t support commercial themes here.

    Once you’ve undone the damage then consider creating a child theme and contact that vendor for what’s the safest way to add that code. Normally you would place it in the child theme’s functions.php file but they may have a different way to do that.

    https://graphpaperpress.com/support/

    Thread Starter otraf

    (@otraf)

    ok, thanks a lot!

    Hi, I also wanted to customize the header and I think I deleted something.
    Now I have:
    Parse error: syntax error, unexpected T_ELSE in /home/a5619744/public_html/wp-content/themes/twentytwelve/inc/custom-header.php on line 156

    I don′t know nothing about coding. How can I recover my site? I need solution step by step ′cause I am really dumb for this game.

    @aleksandar Mijailovic – you’ll need to access your site files on the server using FTP or Cpanel (ask your hosting if you don’t know how to do that) – and delete that theme. Then reinstall it when you’ve logged in again.

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