2johnsons Posted October 20, 2008 Share Posted October 20, 2008 On the home page/ index page I want to change the color of the text "Log yourself in" and "Create an account" I was able to change the roll over color but not the actual text color. I want it to stand out, right now it just blends in. Thank you for any help. Link to comment Share on other sites More sharing options...
germ Posted October 20, 2008 Share Posted October 20, 2008 Two ways. They're links. You can change color of the anchor attribute in the stylesheet. It will look something like this: A { color: #000000; text-decoration: none; } The problem with that is it might change more than you want (link colors elsewhere on the page). If you want to change just those links another way would be in /catalog/includes/langauages/english.php, this code: define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?'); to define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a style="color:blue;" href="%s"><u>log yourself in</u></a>? Or would you prefer to <a style="color:blue;" href="%s"><u>create an account</u></a>?'); Note that I added this code TWICE in there: style="color:blue;" Of course you can choose your own color or use a 6 hex digit color equivilant (i.e #000000 for example). If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
2johnsons Posted October 21, 2008 Author Share Posted October 21, 2008 Thank you for the information it worked but I lost my mouse over effect (text changing to another color) how can I get that back as well as keep the new color? Two ways. They're links. You can change color of the anchor attribute in the stylesheet. It will look something like this: A { color: #000000; text-decoration: none; } The problem with that is it might change more than you want (link colors elsewhere on the page). If you want to change just those links another way would be in /catalog/includes/langauages/english.php, this code: define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?'); to define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a style="color:blue;" href="%s"><u>log yourself in</u></a>? Or would you prefer to <a style="color:blue;" href="%s"><u>create an account</u></a>?'); Note that I added this code TWICE in there: style="color:blue;" Of course you can choose your own color or use a 6 hex digit color equivilant (i.e #000000 for example). Link to comment Share on other sites More sharing options...
germ Posted October 21, 2008 Share Posted October 21, 2008 Make a new anchor style in your stylesheet with the attributes you want, like this: A.new { color: #000000; text-decoration: none; } Then use it in the code like this: define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a class="new" href="%s"><u>log yourself in</u></a>? Or would you prefer to <a class="new" href="%s"><u>create an account</u></a>?'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.