How do I remove this the blue highlighted links from my site?

this is my site http://www.iradio.ie/

I want to remove the highlighted link but I am unable to find the html.

I am trying to disable it by css via using

a.takeoverLink{
	display: none;
}

and

a.takeoverLink.right{
	display: none;
} 

for the one on the right side.

Please help me. thanks

It doesn’t appear in the html, so must be created by one of the (many) js files. Hunt it down there and remove,
rather than just sweeping unwanted elements under the carpet with css.
Removing things should result in less code, not more.

3 Likes

you are right.

Seeing it in the browser developer mode, which one do you think could be the js ?

My guess would be it isn’t one of the Google or jQuery ones, so if I were you, I’d start looking in the others.

It is in your functions-new9.js file, function name TakeoverLinks

function TakeoverLinks (url) {
    var body = document.body, html = document.documentElement;
    var height = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight );
    var width = Math.max( body.scrollWidth, body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth );
    
    width = Math.floor( ( $('site').getWidth() - 1000 ) / 2 ) - 10;
    
    height = $('site').getHeight() - 321;
    
    $('site').insert(  '<a href="https://centra.ie/live-well/5-a-day" target="_blank" style="width:'+width+'px; height:'+height+'px;" class="takeoverLink">Tester</a><a href="https://centra.ie/live-well/5-a-day" class="takeoverLink right" style="width:'+width+'px; height:'+height+'px;">Tester</a>' );
    
}

Note the insert at the bottom of that function, it is what you want to remove.

1 Like

thanks you so much. can you please tell me how you found this ?

thanks again.

Using Developer Tools, I found the link in question, saw it had Tester as the text for the link, so I then searched all your JS files for that word, and it just so happened it only returned one result.

2 Likes

That link completely crashes chrome for me and the whole browser becomes unresponsive and not just the tab. I have to close the browser down to get it working again.

3 Likes

alright. thanks

oh apologies mate.

hi again,

can you please help me finding the text on my vodafone tile in the sidebar on homepage please asap?

www.iradio.ie is my site

thanks.

<div class="meta">
<div class="title">
<img alt="iMusic_player-header" src="/assets/img/content/iMusic_player-header.png">
</div>
<div class="artist clearfix">
<span>Artist</span>
<span class="artist-name">ZAYN</span>
</div>
<div class="track clearfix">
<span>Song name</span>
<span class="track-name">PILLOWTALK</span>
</div>
</div>

All you need to do, is hover over any element you are interested in, right-click on it, then select ‘inspect element’ - dev tools will take you straight to whatever it is you’re interested in finding.

3 Likes

Nauman,

Show Source. Under the Edit menu, select Find. In the search box, type vodaphone. Matches are highlighted…

Chrome is even easier:

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.