Reply To: Header Height

Home Forums Support Header Height Reply To: Header Height

Home Forums Support Header Height Reply To: Header Height

#98811
Larry Cunningham

Hi Tom

Have tried creating the plugin as the site is on WordPress.org and get a fatal error!

This the message:

Parse error: syntax error, unexpected T_FUNCTION in /websites/123reg/LinuxPackage22/sa/ll/yg/sallygardinerceramics.co.uk/public_html/wp-content/plugins/navigation-in-header/navigation-in-header.php on line 13

and this is the script:
<?php
/*
Plugin Name: Navigation in header
Plugin URI:
Description:
Version:
Author:
Author URI:
License:
License URI:
*/
add_action('after_setup_theme','generate_move_navigation_inside_header');
function generate_move_navigation_inside_header()
{
remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 );
add_action( 'generate_after_header_content', 'generate_add_navigation_after_header', 5 );
}

Any suggestions? I am new to adding php so it could easily be some very basic error on my part.

Thanks

Larry