Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    May 2010
    Posts
    222
    Plugin Contributions
    0

    Default Changing link color

    I have tried searching this on Google, but to no avail. I am trying to change the color of links when displayed on a page.

    I looked in my stylesheet.css, but changing any of the "a" link CSS did not work. Could anyone please help me?

    Thank you!

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Changing link color

    Depends on the links. Changing the color of a:link in the stylesheet does indeed change the color of all links in my stock test site except those in the Categories sidebox, which are styled separately.

    A link to your site might let us see what's going on.

  3. #3
    Join Date
    May 2010
    Posts
    222
    Plugin Contributions
    0

    Default Re: Changing link color

    My website is www.queencharlottesoaps.com, but I am specifically talking about this page. How could I change the color of all those links?

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Changing link color

    #ezPageDefault a {color:#ff0000;}

    I'd make them bigger, too.

  5. #5
    Join Date
    May 2010
    Posts
    222
    Plugin Contributions
    0

    Default Re: Changing link color

    What about the links on this page? I want to change the color of that e-mail address.

    There must be a way I can do this without wasting your time. How can I find this stuff out by myself?

  6. #6
    Join Date
    May 2010
    Posts
    222
    Plugin Contributions
    0

    Default Re: Changing link color

    Or what about on the main page?

  7. #7
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Changing link color

    Doing it your self is easy

    It depends on what brower you are using though, i

    If you are using firefox install firebug

    for Internet Explorer* Opera Safari and Chrome they have it built in

    Basically right click next to the link and select "Inspect Element" (you can't right click on a link and select inspect elements, but you can on anything else)

    and in the left hand side of the developer pane that comes up select the anchor tag, or mailto tag for that link and the CSS acting on it should appear in the right hand pane

    *With IE you need to turn the developer tools on and then navigate through the left hand pane till you get to the element you want the css for

  8. #8
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Changing link color

    Firebug is good, or:

    Install the Firefox browser and the Web Developer plugin for Firefox. You can use those to see where in the stylesheet you change the styling of the various page elements.

    Ctrl-Shift-Y will allow you to hover over a section of the page and see the class and id names for that section in the box at the top. The statements in the stylesheet that begin with # are id's and the ones that begin with dots are classes.

    Ctrl-Shift-E will open the CSS editor and allow you to edit the stylesheet and see the changes in real time without changing anything permanently. An essential tool.

    In IE7 and 8, F12 will bring up the Developer tool. It's handy for IE-only problems.

    Also, placing your email address in clear text is an invitation to spammers, and defeats the whole purpose of the Contact Us page, which is to provide your customers with a way of contacting you without, um, exposing your email address to the world.

  9. #9
    Join Date
    May 2010
    Posts
    222
    Plugin Contributions
    0

    Default Re: Changing link color

    I am still having trouble with this. Stevesh, where did you get "#ezPageDefault" from?

  10. #10
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Changing link color

    When I opened the page in Firefox and used Ctrl-Shift-Y to fire up the Web Developer and hovered over that text, it showed me :

    #ezPageDefault .centerColumn >div >a

    So, I added to the stylesheet:

    #ezPageDefault a{font-size:1.5em; color:#ff0000;}

    I can't see what you want to change on the Contact Us page.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Changing Ezpage link color
    By valansi in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 30 Apr 2011, 03:05 AM
  2. Changing HTML Link Text Color
    By Horrific_ending in forum General Questions
    Replies: 2
    Last Post: 13 Sep 2010, 06:20 PM
  3. Changing Font Color of Single Category Link
    By techiegirl in forum Templates, Stylesheets, Page Layout
    Replies: 25
    Last Post: 30 Apr 2010, 10:27 PM
  4. changing link color in sidebar header
    By dudemaaan in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Feb 2010, 10:00 PM
  5. Link color not changing on index page
    By Rogue Tiger in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jan 2008, 07:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg