knoose Posted June 20, 2014 Share Posted June 20, 2014 Hello, I am currently modifying my prestashop theme which is going well. I've got one question though. I would like to change the color of de product name link in new products to the same color as viewed products. It currently takes the color from global.css but if I change that all the other link colors will change as well. Is there any way I can change the link color independ from global.css? I've attached an image to show what i mean. nieuwe juwelen = new products Bekeken juwelen = viewed products thanks for the help! Knoose Link to comment Share on other sites More sharing options...
csschopper.com Posted June 20, 2014 Share Posted June 20, 2014 Hi, You can write css by using parent div id of new product block. Suppose new product div id = "abc" then you want to write css for h2, you can write like this #abc h2{whatever style you want} Thanks Link to comment Share on other sites More sharing options...
knoose Posted June 20, 2014 Author Share Posted June 20, 2014 Thank you for your reply csschopper, unfortunately it doesn't work. I tried to add a new rule in blocknewproducts.css but it still turns all the links a different color instead of just the one. Or maybe I am altering the wrong file, could you be more specific as to where the alteration has to be made? regards, Knoose Link to comment Share on other sites More sharing options...
csschopper.com Posted June 20, 2014 Share Posted June 20, 2014 Hi, Please share website url. Link to comment Share on other sites More sharing options...
knoose Posted June 20, 2014 Author Share Posted June 20, 2014 Hi My website url= http://store.coenhofhuizen.com/ thanks! Link to comment Share on other sites More sharing options...
csschopper.com Posted June 20, 2014 Share Posted June 20, 2014 Hi, Open global.css & go to line 154. There you will see css a, a:active, a:visited { change color code to whatever desired. Thanks Alok Link to comment Share on other sites More sharing options...
knoose Posted June 20, 2014 Author Share Posted June 20, 2014 Again thanks for your reply alas I knew of this option, but when I change it it does exactly what I do not want it to do, namely change ALL the link colors leaving them not readable against the brown and grey background. My question was to change the specific link color marked in the top red circle in the attached image. thanks! Knoose Link to comment Share on other sites More sharing options...
dioniz Posted June 20, 2014 Share Posted June 20, 2014 In yourdomain.com/webwinkel/modules/blocknewproducts/blocknewproducts.css add this somewhere: #new-products_block_right dt a, #new-products_block_right dt a:active,#new-products_block_right dt a:visited{ color:#333; } Link to comment Share on other sites More sharing options...
knoose Posted June 21, 2014 Author Share Posted June 21, 2014 Hi Dioniz, That did the trick! thank you very much! Knoose Link to comment Share on other sites More sharing options...
dioniz Posted June 21, 2014 Share Posted June 21, 2014 You are welcome Knoose Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now