• I have no idea what’s going on here. I was attempting to fix a function definition and I received this error:

    Parse error: syntax error, unexpected T_STRING in /home1/mikespec/public_html/wp-content/themes/mike_liquorice/functions.php on line 45

    I replaced the old text, but the error did not go away. Now, I cannot even get to my sign in page to correct the mistake. What’s going on!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Before you do any of this Bacup your WordPress files and Database

    You can’t even navigate to /wp-login.php ?, I’m pretty sure that page isn’t effected by themes. If you have a backup of the theme try to restore that.

    Thread Starter mspecian

    (@mspecian)

    Everything’s backed up. I just nuked the entire theme. I don’t know why it wouldn’t restore to its original state when I restored the syntax. My goal was to take this function:

    function do_heading()
    {
    $output = “”;

    if(is_home()) $output .= “<h1>”; else $output .= “<h4>”;

    $output .= “” . get_bloginfo(‘name’) . “ <span>” . get_bloginfo(‘description’) . “</span>”;

    if(is_home()) $output .= “</h1>”; else $output .= “</h4>”;

    return $output;
    }

    which creates a masthead with the name of my website with this code which replaces that with a banner:

    function do_heading()
    {
    $output = “”;

    if(is_home()) $output .= “<h1>”; else $output .= “<h4>”;

    $output .= “” . get_bloginfo(‘name’) . “ <span>” . get_bloginfo(‘description’) . “</span>”;

    if(is_home()) $output .= “</h1>”; else $output .= “</h4>”;

    return $output;
    }

    This didn’t work and when I attempted to replace the old code the entire theme crashed and couldn’t be fixed.

    can you go to pastebin and paste the whole file? i can check it for errors.

    Thread Starter mspecian

    (@mspecian)

    I think this is a lost cause. There must be something wrong with the theme itself. Making a change that it syntactically incorrect, trying to save, then undoing the changes causes the entire site to freeze up. Devoting more energy to this is likely to be pointless. I’ve switched to a different theme, but my original problem remains. I would simply like to remove the text heading “The Personal Website of Mike Specian” at https://www.mikespecian.com, and replace it with a jpg. Can you assist?

    Your theme looks ok from here, even the login page looks alright.

    Hi,

    In your header.php find

    id=”welcomeheading”

    You will see a code something like:

    <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>

    You can replace it with something like:

    <div id="welcomeheading">
        <a href="<?php bloginfo('url'); ?>">
      <img src="https://example.com/headerimage.jpg" alt="<?php bloginfo('name'); ?>" />
        </a>

    Read more here

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cannot Log into or Access Website At All’ is closed to new replies.