• Resolved yandoos

    (@yandoos)


    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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?

    Thread Starter yandoos

    (@yandoos)

    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=”https://gmpg.org/xfn/11&#8243; />
    <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: https://the-powerofyou.co.uk/?page_id=16

    Thank you.

    Thread Starter yandoos

    (@yandoos)

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

    thanks

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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 https://www.ads-software.com/plugins/custom-css-manager-plugin

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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?

    Theme Author Tomas Mackevicius

    (@tomasm)

    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 ??

    Thread Starter yandoos

    (@yandoos)

    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 ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom css’ is closed to new replies.