• 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 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)
  • Revert to a default WordPress theme and see if you still have those links.

    Thread Starter lennartrip

    (@lennartrip)

    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.

    Take the backup of your theme and find the filename as footer.php then remove that particular line or just comment that line

    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/

    Thread Starter lennartrip

    (@lennartrip)

    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.

    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

    (@lennartrip)

    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?

    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,

    @swp242 – please keep help on these forums as per the forum guidelines – http://codex.wordpress.org/Forum_Welcome#Helping_Out

    WPyogi,

    Understood.
    My apologies for not having read through the guidelines.

    @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.