Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Code snippet left in header


  #1  
Old May 16, 2016, 10:33 AM
elviejiton
 
6 posts · May 2016
Before discovering this forum, I tried to create rotating, linked header images using the WordPress Responsive Image Header Slider Plugin. It didn't work to my satisfaction (or I couldn't figure out how to get it to work), so I deactivated and deleted the plugin and the code snippets that it had suggested inserting (shortcode).

Unfortunately, I am left with a different code snippet in the header area: body class="home blog logged-in admin-bar no-customize-support" > which I don't know where it came from or how to get rid of it.

Any suggestions would be appreciated.
  #2  
Old May 16, 2016, 10:56 AM
juggledad's Avatar
juggledad
 
23,465 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
have you tried disabling ALL your plugins to see if there is a conflict?
what is the url?
go to ATO->export/import and export your settings then attach them to a reply (use the paper clip icon)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old May 18, 2016, 11:01 AM
elviejiton
 
6 posts · May 2016
The URL is www.prineb.org

I haven't tried disabling all plugins yet.

Thanks for any help.
Attached Files
File Type: txt ata-wwwprineborg-20160518.txt (15.2 KB, 90 views)
  #4  
Old May 18, 2016, 01:19 PM
juggledad's Avatar
juggledad
 
23,465 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
I haven't tried disabling all plugins yet.
well let me know what happens when you do disable them ALL.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old May 18, 2016, 09:31 PM
elviejiton
 
6 posts · May 2016
I deactivated all the plugins and there was no change to the code snippet found at the top of the website.
  #6  
Old May 18, 2016, 10:27 PM
juggledad's Avatar
juggledad
 
23,465 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Odd, with your settings I have no issue. You haven't modified any of the theme code by any chance?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old May 18, 2016, 11:37 PM
elviejiton
 
6 posts · May 2016
Not that I'm aware of. But would it make sense to reinstall Atahualpa to find out if that fixes it? I've thought of doing that by installing another theme, then deleting atahualpa, then installing atahualpa and deleting the other theme.

It probably would make sense to mention that somehow all the post permalinks, including the comment links, have been changed to the "contact us" page. This happened within the past few weeks, I believe, and was not done (consciously, at least) by me; and there is no one else with access. But I would be happy to deal with one problem at a time.

Last edited by elviejiton; May 19, 2016 at 12:01 AM.
  #8  
Old May 19, 2016, 05:00 AM
juggledad's Avatar
juggledad
 
23,465 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
before you reinstall, take a look at the atahualpa (v3.7.24) header.php file and look at line 62 does it match the following?
HTML Code:
<body <?php body_class(); ?> <?php bfa_incl('html_inserts_body_tag'); ?>>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old May 19, 2016, 11:16 AM
elviejiton
 
6 posts · May 2016
Fantastic! You found it. The initial "<" had somehow disappeared from that line. I inserted it and the obtrusive code snippet went away.

Now I'm going to restore the WordPress database from backup to get rid of the bizarre links mentioned above and explore whether WordPress has two-factor identification for passwords - especially for administrator - to reduce the chances of such silly things happening again.

Thanks!
  #10  
Old May 19, 2016, 12:12 PM
juggledad's Avatar
juggledad
 
23,465 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Ummm if you didn't change that code, I'd be worried about a hack. I would install the plug-in wordfence I'm going to scan on your site including all of your plug-ins and templates.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old May 20, 2016, 10:50 AM
elviejiton
 
6 posts · May 2016
I already had the "Login Security Solution" plugin activated, although I hadn't changed the admin password for way too long. Let me know if you think there is a clear benefit for Wordfence over Login Security Solution.
  #12  
Old May 20, 2016, 01:47 PM
juggledad's Avatar
juggledad
 
23,465 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Wordfence can scan the code on the site to see if it has been changed.

The issue is that unless you changed the code it can't change on its own. And the worry is someone has hacked your site. Doing a scan will give you more information.

If I discovered a file had been changed without my doing it, I would be treating it as a hack.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add snippet of PHP code to header area (custom widgets) crashley1784 Header configuration & styling 1 Jan 29, 2012 12:14 PM
[SOLVED] Code snippet appearing above post pages burnhamg Header configuration & styling 4 Dec 12, 2010 10:15 PM
Where to post code snippet for Google Analytics with this theme? sjolyjuly Atahualpa 3 Wordpress theme 17 Oct 28, 2010 10:15 PM
[SOLVED] How to Add Code Snippet at Bottom of Posts LaneLester Center area post/pages 0 May 16, 2010 07:21 PM
Aweber Autoresponder - how to add snippet code to wordpress theme racingprofits Sidebars & Widgets 0 Aug 24, 2009 01:02 PM


All times are GMT -6. The time now is 12:11 PM.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.