WordPress.org

Ready to get started?Download WordPress

Forums

Tiny Forge
[resolved] Custom css (8 posts)

  1. yandoos
    Member
    Posted 7 months ago #

    Hiya I've tried uploading my own css file and linking it accordingly in the header.php. But none of my css seems to be working. I'm only trying to change the link colors. Any ideas????

    Thank you

  2. Andrew
    Forum Moderator
    Posted 7 months ago #

    Are you using a Child Theme?
    Did you enqueue the stylesheet?
    Are you using specific enough selectors?
    Do you have a syntax error in your stylesheet?
    Can you link your site?

  3. yandoos
    Member
    Posted 7 months ago #

    Thank you for your reply,

    In the editor section I don't see anything called Child Theme.
    I'm not sure I understand what you mean by enqueue the stylesheet? I added the css to the header.php below the other 2 <links/>:

    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <link rel="stylesheet" href="wp-includes/css/style.css" type="text/css" media="screen, projection" />

    I'm sorry I don't understand what you mean by specific selectors either. I'm a bit of a noob.

    The syntax to the stylesheet is here (I tried to make 2 classes to test it:
    a.pagelink:link { color: #FFFFCE; text-decoration: none; }
    a.pagelink:visited { color: #FFFFCE; text-decoration: none; }
    a.pagelink:active { color: #CCFFCC; text-decoration: none; }
    a.pagelink:hover { color: #FFFF63; text-decoration: none; }

    .MyLink { COLOR: #444444; TEXT-DECORATION: none;}
    .MyLink:hover { TEXT-DECORATION: underline; }

    The website is: http://the-powerofyou.co.uk/?page_id=16

    Thank you.

  4. yandoos
    Member
    Posted 7 months ago #

    Please use the homepage to see the testlink http://the-powerofyou.co.uk/

    thanks

  5. Andrew
    Forum Moderator
    Posted 7 months ago #

    I recommend to use a plugin to hold and manage your CSS modifications - separate to the theme. There's an issue with modifying the theme's files and that is when the theme updates your changes will be erased :(

    Try this plugin http://wordpress.org/plugins/custom-css-manager-plugin

  6. Andrew
    Forum Moderator
    Posted 7 months ago #

    The syntax to the stylesheet is here (I tried to make 2 classes to test it:

    Which links on your website are you trying to style?

  7. Tomas Mackevicius
    Member
    Theme Author

    Posted 7 months ago #

    Hi, yandoos,

    wp-includes folder belongs to WordPress core, so this is not a good idea...

    Having in mind your current experience, I would also suggest you to use that custom CSS plugin.

    Child theme is located in Tiny Forge theme's /inc folder - look for the zip file. Read Tiny Forge readme.txt for more info on child theme implementation ;)

  8. yandoos
    Member
    Posted 7 months ago #

    Thank you very much indeed its working brilliantly!

    I am using the css plugin and its very simply now.. I pretty much love the original design of the website as it is. It was just the link color I wanted to change.

    Thank you all for replying and your support.

    Tom - very grateful and happy :D

Reply

You must log in to post.

About this Theme

About this Topic

Tags