Getting hacked with WordPress is not a great thing to experience. Did you take a look at the Hardening WordPress codex page?
Most of the time you get extra PHP code in some of your WordPress Core, Theme and plugin files. I guess this happened to you too and tried to remove this. Could it be possible you removed too much? Try ‘reinstalling’ your theme from a newly downloaded zip file. Just replace your current directory.
I’ve one of my client’s sites get hacked I usually do:
- Transfer the site to a local development environment.
- Reinstalling a fresh copy of WordPress
- Reinstalling fresh copies of plugins.
- Reinstalling fresh copies of Theme.
- Manually check and copy all content of posts, pages etc.
I do this because you can never be certain you missed a bit of the hack!
Related Posts:
- How to stick the footer to the bottom of the page? [closed]
- How to remove version and thank you message from the admin footer
- Can i put ‘page’ at the bottom of each page?
- footer.php – twentysixteen child theme – social links menu to output font awesome icons
- How to edit footer
- How do i change the footer?
- Where is the admin bar instantiated?
- Using wp_register_style to load CSS in footer?
- editing footer text in JBST theme
- How to find the right file with inspector? [closed]
- What is this code in my theme’s footer.php causing chmod permission warnings? [closed]
- wp_footer hook not working inside a class if not single [closed]
- Identify the page I am viewing
- Removing a link below from footer
- WordPress Site footer on Firefox displays a error
- How to edit footer content
- Changing copyright year in Footer.php with Custom plugin
- footer does not respect css stylesheet
- How to fix the footer to the bottom of the screen
- Delete bullet points in footer menu [closed]
- Getting A Link below footer – Want to remove it. How?
- How can I change this footer.php code to call a random image on reload?
- Editing footer for one page, keeping it the same for others
- Place Footer at bottom of page with short text
- Can’t deregister / dequeue scripts in WordPress
- Code for changing the size of the footer block (background) and font size
- How to add another image on footer.php
- On just 1 (new) page of my site there appears a wordpress footer with copyright 2012 which I want to remove
- Footer not visible
- how to edit part of footer
- How to remove the footer from a theme
- footer display problem
- How I can Delete Footer without using plugin BlankSlate?
- My footer has disappeared but only on my home page
- Meta Slider Lite plugin shortcode in post not working
- Footer with next/previous posts
- Move jquery ui to footer
- How do I change the footer (Norma) [closed]
- Re-position footer and force it to drop below blog post excerpts on home page [closed]
- How can I completely edit the footer?
- How to edit the WordPress footer
- How to Keep footer link remain intact?
- Footer Missing in website [closed]
- CSS to make HTML page footer stay at bottom of the page with a minimum height, but not overlap the page
- How can I make my footer center to the bottom of the page?
- If a hacker changed the blog_charset to UTF-7 does that make WordPress vulnerable to further attacks?
- How to add javascript just before the closing body tag in the footer of WordPress
- How Attackers write script into my php files?
- Hook for writing text string after footer scripts
- How can I remove “Proudly powered by WordPress” from twentyeleven without modifying footer.php?
- Restrict access to xmlrpc.php
- Template part vs Sidebar (differences)
- Move jQuery and Migrate to footer?
- hSite has no css on mobile [closed]
- How to mass delete one line from all posts after site hack
- How to safely remove the footer (twentytwenty)
- How do I enqueue a JavaScript in my footer via the functions.php file?
- Invisible spam post in backend
- Why would this IF statement not work? [closed]
- You appear to have already installed WordPress. To reinstall please clear your old database tables first
- Change directory of javascript files
- Find and Replace text in the entire table using a MySQL query
- Separator for custom nav menu
- Show widget differently depending on if it’s in the sidebar or footer
- sitemap contains weird links and does not contain my pages [closed]
- Edit footer via customizer
- Malware script in database post table only? [closed]
- New user is assigned 2 roles: customer and superadmin
- Hacked WordPress website /Homepage redirect [closed]
- Add content to footer – above wp_footer
- Hack-Proof OR Security in WordPress — is it real?
- Which function required?
- Is wp-app.php or wp-apps.php needed for WordPress?
- Suspicious URLs being loaded after hack and restore
- Displaying shortcode in footer
- Copy wordpress website pages and content
- How do I know if my WP Theme is using infamous TimThumb?
- Getting ACF Field in Page – From the Footer
- My website is not showing Footer section
- Have I been hacked? Mysterious code at the top of theme files [closed]
- With over a page of content the footer remains where the bottom of the screen was at top scroll
- Export Header and Footer
- Username was changed to “admin”
- Adding Gallery to Footer of Homepage
- Should i use custom post type for a custom footer?
- Strange codes in my wordpress site and my website is running too slow [closed]
- Add my footer menu to the header
- My blog was hacked? WP posting random posts
- Why functions.php file automatically empty?
- WordPress Get Header and Footer using in Admin Area
- Conditional statements based on custom meta value in category archives
- How to display a link in the footer section
- How to implement conditional PHP in Footer
- How to remove content from hacked pages? [closed]
- How can I structure my pseudo footer nav code with wordpress codex code?
- WordPress Hacks/Defacing [closed]
- Why are some SVG-images not visible in my footer?
- Strings of malicious code to look for after a hack
- WordPress website is redirecting on some different shopping page
- Hacked/cloaked sitemap [closed]