Error when accessing my blog (5 posts)

  1. ACKnell
    Posted 3 years ago #

    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.

  2. s_ha_dum
    Posted 3 years ago #

    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)

  3. ACKnell
    Posted 3 years ago #

    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!

  4. ACKnell
    Posted 3 years ago #

    Sorry ignore me I had a morning moment...

    Ok here are lines 30 - 40:

    	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,
    ) );
  5. s_ha_dum
    Posted 3 years ago #

    Isn't that "wp-admin/index.php"? The problem is with "wp-content/themes/ACKnell/index.php".

Topic Closed

This topic has been closed to new replies.

About this Topic