Geronantimo
Technical User
Hi,
Can anybody advise me whether it is possible to use an "if" statement to style a specific link when it appears on a page?
The link appears like this in the browser's source code:
I am wondering how to create a conditional statement in the top of the website's template that says (in PHP terms) - "If the link's href = /br/link.html, css colour styling should be #ff0000;"
The page is created dynamically and I do not have complete control over how the link itself is created.
Can anybody advise me whether it is possible to use an "if" statement to style a specific link when it appears on a page?
The link appears like this in the browser's source code:
Code:
<li class="level1 item9">
<a href="/br/link.html" class="level1 item9">
<span>Best Link</span>
</a>
</li>
The page is created dynamically and I do not have complete control over how the link itself is created.