Forums
Forums / Plugin: Menu / Can't get into site after code addition
(@patriceporterp)
11 years, 3 months ago
I know next to nothing about programming but I can copy with the best of them. So, trying to add a search box to my navigation menu, I copied this code (from http://bavotasan.com/2011/adding-a-search-bar-to-the-nav-menu-in-wordpress/) into my functions.php (in my Pinnacle child theme):
add_filter( ‘wp_nav_menu_items’,’add_search_box’, 10, 2 ); function add_search_box( $items, $args ) { $items .= ‘
‘; return $items; }
So now I can’t get into the site at all (it tells me to contact the server administrator), and I’m guessing it’s because it’s changed the menu structure, which I don’t know how to access from outside of WordPress (I’m using I-Page file manager).
https://wordpress.org/plugins/menu/
The topic ‘Can't get into site after code addition’ is closed to new replies.