How do I change the link color in php?

by sirtom
5 replies
Hey all,

I'm not a PHP dude, and though I DID try this on my own, I've been very unsuccessful so far.

This is the site I'm setting up: Insider Fitness Blog

What I'm trying to do is change the color of the hyperlinks to blue (#0000FF).

As of now, if you look at the first 3 words of the post on the main page (which I hyperlinked as an example so you see easily see as a reference), the hyperlink color is almost a light-navy color.

So, how do I make these hyperlinks BLUE like regular links? (Or any color, for that matter?)

Thanks so much for any help!
-Tom
#change #color #link #php
  • Profile picture of the author baklap
    It's not a php problem. It's a css problem.

    Open the css stylesheet and add the following line of code: (or check if it is already available)

    a {
    color: #0000ff;
    }
    {{ DiscussionBoard.errors[5935207].message }}
    • Profile picture of the author sirtom
      Originally Posted by baklap View Post

      It's not a php problem. It's a css problem.

      Open the css stylesheet and add the following line of code: (or check if it is already available)

      a {
      color: #0000ff;
      }
      I checked and this doesn't appear in the stylesheet as of now. Where do I add this at?

      Under the "Typography" area, there's this code:
      a:link, a:visited {text-decoration: none;}

      a:hover {
      text-decoration: underline;
      }

      Not sure if that's related to the color, but it's as close to the code you suggested as I could find...


      PS- I guess I'm really NOT a PHP dude
      Signature
      [WSO] Fitness/Weight Loss PLR Package like you've never seen before (and outlandish reviews!) - check it out here
      {{ DiscussionBoard.errors[5935241].message }}
      • Profile picture of the author baklap
        Originally Posted by sirtom View Post

        I checked and this doesn't appear in the stylesheet as of now. Where do I add this at?

        Under the "Typography" area, there's this code:
        a:link, a:visited {text-decoration: none;}

        a:hover {
        text-decoration: underline;
        }

        Not sure if that's related to the color, but it's as close to the code you suggested as I could find...


        PS- I guess I'm really NOT a PHP dude
        just add the lines i posted and it should work. It's still a css question not php
        {{ DiscussionBoard.errors[5935893].message }}
    • Profile picture of the author angelacat
      Originally Posted by baklap View Post

      It's not a php problem. It's a css problem.

      Open the css stylesheet and add the following line of code: (or check if it is already available)

      a {
      color: #0000ff;
      }
      Yeah, I suppose that you need to use standard codes to define the link color.
      {{ DiscussionBoard.errors[5935920].message }}
  • Profile picture of the author ussher
    a {
    color: #0000ff;
    }
    a:link, a:visited {text-decoration: none;}

    a:hover {
    text-decoration: underline;
    }


    this is CSS not PHP.
    Signature

    "Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."

    - jamroom.net
    Download Jamroom free: Download
    {{ DiscussionBoard.errors[5935973].message }}
  • Profile picture of the author suhanaanjum
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[5936015].message }}

Trending Topics