Support » Themes and Templates » Error when accessing my blog

  • I never used to have this issue, but when I visit the blog link from my site http://www.acknell.co.uk I encounter this error:

    Fatal error: Call to a member function add_help_tab() on a non-object in /home/r03ackn/public_html/wp-content/themes/ACKnell/index.php on line 35

    Can you help, I have looked in the Main Theme index template but cannot quite place my finger on it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Paste lines 30-40 of “wp-content/themes/ACKnell/index.php”. Put code in between backticks— the sideways single quote next to the number “1” (on keyboards common in the US, anyway)

    Hi s_ha_dum

    Thanks for the message. Would you mind elabrating a bit more into which lines I need to alter as WordPress doesnt present me with a line count and I can imagine the paragraph breaks are different than viewing it in a standard HTML viewer?

    Basically could you provide me the specific instructions and what I need to do with the various lines?

    Sorry I am bit of a beginner to WordPress.

    Many thanks!

    Sorry ignore me I had a morning moment…

    Ok here are lines 30 – 40:

    else
    	add_screen_option('layout_columns', array('max' => 4, 'default' => 2) );
    
    $help = '<p>' . __( 'Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab in the upper corner.' ) . '</p>';
    
    get_current_screen()->add_help_tab( array(
    	'id'      => 'overview',
    	'title'   => __( 'Overview' ),
    	'content' => $help,
    ) );

    Isn’t that “wp-admin/index.php”? The problem is with “wp-content/themes/ACKnell/index.php”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error when accessing my blog’ is closed to new replies.