WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I remove code line 222? (26 posts)

  1. SRCreative
    Member
    Posted 2 years ago #

    Hi,

    Please can someone help me remove a line of code.

    '-->' has appeared on my site above thumbnail number 3 on the 'work' page of my site, http://www.susierichards.com. I can see in my source it is line 222 but I have no idea where the code is to delete it. Any ideas?
    Thanks
    Susie

  2. Krishna K
    Member
    Posted 2 years ago #

    --> appears on the page as it was typed in some of your theme files out side tags. It could have come their while editing the theme files, or because of old corrupt files.

    You run an old version of WordPress. You need to update it. Other wise, you can face other problems while trying to remove the said characters.

    So, update WP first.

  3. loughcorrib
    Member
    Posted 2 years ago #

    html body.page div.container div.container-inner div.span-24 div.content div#post-468.post-468 div#ngg-gallery-1-468.ngg-galleryoverview
    Its just under above in css.Probably a remnant of a html comment,though what is was doing there?? See div class=container-inner

  4. SRCreative
    Member
    Posted 2 years ago #

    Thanks Krishna, I've now updated WP. What should I do now? Would it be specifically in the NextGen Gallery plugin theme files or in Modularity Lite theme files?

  5. SRCreative
    Member
    Posted 2 years ago #

    Thanks loughcorrib, saw your reply after I replied to Krishna. OK will check there....

  6. SRCreative
    Member
    Posted 2 years ago #

    loughcorrib should I be looking in NextGen plugin css? Can't find it in nggallery.css. And I cannot find it in my style.css. Any ideas? Thanks very much for your help so far!

  7. Krishna K
    Member
    Posted 2 years ago #

    Generally this type of orphan characters are difficult to locate. There are two similar cases reported in the last few days. I will locate and post them here.

    Now tell me, did you change the original theme, or did you create a child theme of it?

  8. SRCreative
    Member
    Posted 2 years ago #

    I have created a child theme.

  9. Krishna K
    Member
    Posted 2 years ago #

    Look at this link:
    http://wordpress.org/support/topic/letter-f-shows-up-on-upper-left-hand-side-of-my-wp-site-on-all-the-pages?replies=31

    If you created the child theme, you can easily replace your parent theme without losing your customization. Try that. Let us see if that solves the problem.

  10. SRCreative
    Member
    Posted 2 years ago #

    Thanks, I've read the link. Do you think '-->' is in the parent theme as opposed to the NextGen gallery plugin as it is right in the middle of my Nextgen thumbnails that it appears?

    To replace my parent theme do I just delete it and reinstall it? That's it?

  11. SRCreative
    Member
    Posted 2 years ago #

    I should add that it has only just appeared, when I changed my thumbnails to be a 3 column and not a 4 and changed their size. It wasn't there before that.

  12. Krishna K
    Member
    Posted 2 years ago #

    Yes, just delete and reinstall the Modularity Lite with a freshly downloaded copy.

  13. SRCreative
    Member
    Posted 2 years ago #

    I have deleted Modularity Lite and reinstalled it and then reactivated my Mod Child theme and --> is still there. Thinking it's the nextgen plugin???

  14. Krishna K
    Member
    Posted 2 years ago #

    Generally, theme developers also update their themes to function well with the latest version of WP. So, it is not a bad idea to reinstall it. If that does not make any change, the next step is to check your own child theme. Pl do that, after that I will tell you where it can be. It takes a little time.

  15. Krishna K
    Member
    Posted 2 years ago #

  16. Krishna K
    Member
    Posted 2 years ago #

    Possibly your guess is right (though not surely). If you use Firebug, you can see it between two lines of NextGen plugin codes.

  17. SRCreative
    Member
    Posted 2 years ago #

    I found it! It was in nextgen-gallery/view/gallery-caption.php.

    I copied and pasted a number of the .css and .php files into a text editor and did a CTRL Find on '-->' and hey presto I found a random entry!

    Thank you so much Krishna for helping me with this. Your time is much appreaciated. :-)

    The validation report seems to have thrown up loads of errors. I believe the majority of theme to do with how the parent theme was written. Am I ok to just leave these or should I go in and write over what the author has written. My site so far seems to be working ok????

  18. Krishna K
    Member
    Posted 2 years ago #

    First of all, congrats, because you found it. I have found that many people do not have the patience to do such work. So, I appreciate you.

    Most of the validation errors are from the original theme, I think. Anyway, it is not a nice idea to change the theme's original files, as they will be lost when they update the theme.

    I have checked many sites, and most of them have some problem or the other. Though, it is advisable to have a clean validation, it is nothing to worry much about unless there are too many errors and WARNINGS.

    I think your site is OK. I will recheck one or two aspects. Come back after a few minutes. If your problem is solved, mark the post as resolved after a few minutes.

  19. SRCreative
    Member
    Posted 2 years ago #

    Thanks Krishna!

  20. Krishna K
    Member
    Posted 2 years ago #

    Your site is quite OK now. Earlier it had some security warnings too. That is why I asked you to update a few things. I did not write here because I did not want to scare you.

    You are welcome with your questions.

  21. Krishna K
    Member
    Posted 2 years ago #

    You may mark the topic as resolved!

  22. SRCreative
    Member
    Posted 2 years ago #

    I am intrigued! Please tell me what the warning were? I have started getting some spam??

  23. SRCreative
    Member
    Posted 2 years ago #

    Also, will I get the security warnings again but be unaware of them because I won't be able to do the checks you do?

  24. Krishna K
    Member
    Posted 2 years ago #

    Nothing to worry now. You may now put it up, if you like for a site review at the appropriate place in the forum.

    As I said, there were warnings because your site had outdated software, and some indications of malware. But the reports were conflicting. No fun in repeating them here. You are quite secure now, though there are many ways to tighten security.

  25. Krishna K
    Member
    Posted 2 years ago #

    Yes. You have to check your site for such warnings. Most importantly, keep your software updated.

  26. SRCreative
    Member
    Posted 2 years ago #

    Thanks Krishna. I have a few things to finish off and then will put it up for review. I hadn't realised that you could/should put it up for review! Is this simply so it can be tested in different environments?

    Any advice on tightening security would be welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.