Title: Spam Link
Last modified: August 21, 2016

---

# Spam Link

 *  [lennartrip](https://wordpress.org/support/users/lennartrip/)
 * (@lennartrip)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/spam-link/)
 * Hey there,
 * I’m having a problem with one of my wordpress sites.
    When I view my pages while
   I am logged in as admin nothing is wrong. However, when I am viewing my pages
   while I’m not logged in as admin something strange happens: a spam link is added
   near the footer. This is the page HTML source when I am not in admin mode:
 *     ```
       <a href="http://techetheatre.org" style="color#333; font-size:0.8em;">happy wheels</a>
               <div class="pagenumbers">
                       </div>
   
           </div>
           </article>
       </div></div>
           </div>
       </section>    
   
                   <!-- footer -->
               <footer id="colophon" role="contentinfo" data-role="footer" data-position="fixed" data-fullscreen="true">
                   <div class="row   row_id_delimiter123 "><div class="delimiter  twelve columns"><div style="border-top: 1px dotted #cecece;" class="delimiter-type pointed margin_30px "></div></div></div><div class="row element row_id_copyright "><div class="copyright align-left six columns">            <p class="copyright">Copyright © 2013 <a href="http://annekezuidema.nl" target="_blank">Anneke Zuidema</a>. Alle rechten voorbehouden.</p>
               </div><div class="socialicons align-right six columns">
               <ul class="cosmo-social align-top">
       ```
   
 * The `<a href="http://techetheatre.org" style="color#333; font-size:0.8em;">happy
   wheels</a>` code is not in the source HTML of the page when I am logged in as
   admin.
 * I have no clue how to resolve this problem, I want to remove the link, I have
   checked all template files, CSS files, PHP files and searched for ‘happy wheels’
   but it didn’t find anything.
    How can I fix this? I will make a donation to the
   person that can help me solve this.
 * EDIT: This is the link to the page [http://www.annekezuidema.nl/?page_id=340](http://www.annekezuidema.nl/?page_id=340)
   scroll all the way down and you will see a link to ‘happy wheels’. This is what
   needs to be removed.

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/spam-link/#post-4330037)
 * Revert to a default WordPress theme and see if you still have those links.
 *  Thread Starter [lennartrip](https://wordpress.org/support/users/lennartrip/)
 * (@lennartrip)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/spam-link/#post-4330042)
 * No I don’t have them on the normal themes, so I think it is theme related, still
   i’d like to know how to delete it.
 *  [Vignesh Pichamani](https://wordpress.org/support/users/viky081/)
 * (@viky081)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/spam-link/#post-4330045)
 * Take the backup of your theme and find the filename as footer.php then remove
   that particular line or just comment that line
 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/spam-link/#post-4330050)
 * You need to change that theme or ask the theme vendor as to why he is inserting
   those links.
 * EDIT: Go through this article – [http://www.chipbennett.net/2010/12/10/only-download-wordpress-themes-from-trusted-sources/](http://www.chipbennett.net/2010/12/10/only-download-wordpress-themes-from-trusted-sources/)
 *  Thread Starter [lennartrip](https://wordpress.org/support/users/lennartrip/)
 * (@lennartrip)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/spam-link/#post-4330074)
 * I’ve already been through the footer.php file, but I can’t find anything related
   to this link.
    Actually i’ve tried every file on the server and couldn’t find
   anything.
 *  [SWP242](https://wordpress.org/support/users/swp242/)
 * (@swp242)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/spam-link/#post-4330441)
 * Had the same problem.
    Found in the below line in **content-page.php** and removed.
   Hope this helps.
 * `<?php if (!current_user_can( 'manage_options' )) { echo '<a href="http://www.
   happy-wheels-2-full.com">happy</a>'; } ?>`
 *  Thread Starter [lennartrip](https://wordpress.org/support/users/lennartrip/)
 * (@lennartrip)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/spam-link/#post-4330442)
 * SWP242 thank you for replying.
    Just can’t seem to find the content-page.php 
   or anything that echos ‘happy wheels’ in any of the other PHP files. Any idea
   which other files could be echoing this?
 *  [SWP242](https://wordpress.org/support/users/swp242/)
 * (@swp242)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/spam-link/#post-4330443)
 * lennartrip,
 * It can be very frustrating at times to spot the culprit.
    Would you mind if I
   email you though your website contact page? A second set of eyes looking can 
   sometimes find something that someone else may have otherwise missed…
 * Regards,
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/spam-link/#post-4330444)
 * **[@swp242](https://wordpress.org/support/users/swp242/) **– please keep help
   on these forums as per the forum guidelines – [http://codex.wordpress.org/Forum_Welcome#Helping_Out](http://codex.wordpress.org/Forum_Welcome#Helping_Out)
 *  [SWP242](https://wordpress.org/support/users/swp242/)
 * (@swp242)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/spam-link/#post-4330445)
 * WPyogi,
 * Understood.
    My apologies for not having read through the guidelines.
 *  [the wordpress guru](https://wordpress.org/support/users/the-wordpress-guru/)
 * (@the-wordpress-guru)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/spam-link/#post-4330487)
 * [@swp242](https://wordpress.org/support/users/swp242/) hi did you get the solution;
   
   here the solution; go to the includes folder from your server and find the single-
   post.php file and you will find the annoying script;
 *     ```
       <?php if (!current_user_can( 'manage_options' )) { echo '<a href="http://techetheatre.org">happy wheels</a>'; } ?>
       							<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'tl_back' ) . '</span>', 'after' => '</div>' ) ); ?>
       ```
   
 * DELETE IT and you set!!!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Spam Link’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 6 participants
 * Last reply from: [the wordpress guru](https://wordpress.org/support/users/the-wordpress-guru/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/spam-link/#post-4330487)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
