functions.php seemed to have broken my site
-
I recently added this code to the top of functions.php (after the <?php):
add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2); function add_login_logout_link($items, $args) { ob_start(); wp_loginout('index.php'); $loginoutlink = ob_get_contents(); ob_end_clean(); $items .= '<li>'. $loginoutlink .'</li>'; return $items; }
and since then my site says “The server encountered an internal error or misconfiguration and was unable to complete your request.”
I since removed the code but I’m still getting this error message. I tried narrowing down the issue by: renaming the theme folder, renaming plugin’s folder, renaming htaccess file and none of those things worked. What do you think would be my best solution?
my site: https://www.biblebatch.com
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘functions.php seemed to have broken my site’ is closed to new replies.