MyBB Community Forums

Full Version: Change link color in portal announcements
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I am trying to customize the link/hover colors of the links inside the portal announcements (so the links inside the posts that are displayed on the portal). Right now it uses the global link color (dark), but I need to make the link color white. I know about the class attribute which you can use for <a href tags, but this cannot be done here because there links are pulled from post content. Same for the link to the authors profile in the portal announcement, which is like this in the template {$profilelink}

Anyone know how to do this? Smile
Are the links in a special area, or scattered around the page? If they're in a special area, you can surround it in a <div id="something"> and in your CSS use:
/* Note that I cut out the stuff after the a:, just look at the normal MyBB a:... to see what you need */
#div a:... {
  color: #whatever;
}
Use the "advanced mode" editing to add a class to your CSS.
Woohoo, it works! Thanks!