Strange Code on Site’s Header
-
I wanted to remove the website section on my blog’s comment to reduce spam and pasted a code I found on WP Beginner. I pasted the code in the child theme’s functions.php and when it didn’t work, I proceeded to remove it, which I did. Unfortunately, it has been hanging around.
I have checked every .php file I suspect but can’t seem to find it and it is sitting above the site’s header. I desperately need to have it removed but can’t seem to. I have even had to delete the child theme because I thought it could fix it but the problem remains. The affected site is NigerianWiki.
The code
add_filter('comment_form_default_fields', 'unset_url_field'); function unset_url_field($fields){ if(isset($fields['url'])) unset($fields['url']); return $fields; }
is what I intend removing and the same is above the site’s header section.PS: The code is not visible when I log on to the site but becomes visible when I log off.
The page I need help with: [log in to see the link]
- The topic ‘Strange Code on Site’s Header’ is closed to new replies.