Can we see what you’re talking about?
It might be that you need to add in some CSS, but I can’t say for sure.
Sorry, it’s held locally, would prefer not to upload for now heh. Hope that’s OK.
Uhm, basically if I’m in the FOOTBALL page I’d like it to be like
> Rugby
> Cricket
> Football
> Formula 1
I’d assumed you could just add &class=bold
to that.
Is this possible, without having to do a stack of if statements?
I would do something like this:
// in the PHP
<?php
if(page_id==14) {
$rugbyLink="";
$cricketLink="activeSideBarLink";
$footballLink="";
$formula1Link="";
}
else if(page_id==15) {
$rugbyLink="";
$cricketLink="";
$footballLink="activeSideBarLink";
$formula1Link="";
}
// include else if statements for all possibilities and end with
else {
$rugbyLink="";
$cricketLink="";
$footballLink="";
$formula1Link="";
}
?>
<!-- in the HTML -->
<li class="$rugbyLink"><a href="yourLinkHere">Rugby</a></li>
<li class="$cricketLink"><a href="yourLinkHere">Cricket</a></li>
<li class="$footballLink"><a href="yourLinkHere">Football</a></li>
<li class="$formula1Link"><a href="yourLinkHere">Formula 1</a></li>
<!-- etc -->
/* in the CSS */
.activeSideBarLink a, .activeSideBarLink a:link, .activeSideBarLink a:visited, .activeSideBarLink a:hover {
font-weight: bold !important;
}
HTH