4alex
July 6, 2015, 4:17pm
1
Hi Movin,
Trying to customise Dazzling Popular Post Widget to no avail. Could you help me with the following:
change active tab (i.e. background colour, text colour, border colours)
change non-active tab (i.e. background colour, text colour, border colours)
change border colour of main content box
change background colour of main content box
change link colour of posts
change date colour of posts
movin
July 8, 2015, 11:43am
2
Hi @4alex ,
I hope you are well today and thanks for posting here.
To achieve this try adding the following CSS code in the Custom CSS option of your theme on the below path.
Admin Area -> Apperance -> Theme Options -> Other -> Custom CSS
1) change active tab (i.e. background colour, text colour, border colours)
body .nav-tabs>li.active>a {
background-color: #EEE;
border-color: #000;
color: #1e73be;
}
2) change non-active tab (i.e. background colour, text colour, border colours)
body .nav-tabs>li > a {
background-color: #EEE;
border-color: #1FA67A;
color: #81d742;
}
3) change border colour of main content box
ul#popular-posts {
border-color: #1FA67A;
}
4) change background colour of main content box
ul#popular-posts {
background-color: #E8E8E8;
}
5) change link colour of posts
ul#popular-posts a {
color: #81d742;
}
6) change date colour of posts
ul#popular-posts .content i {
color: #1FA67A;
}
Please note the color value used in the above code is for display purpose, you can change it to whatever you want to.
You can change the color value in the above code to whatever you want to use by referring the following pages.
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
http://www.w3schools.com/html/html_colorvalues.asp
http://www.w3schools.com/tags/ref_colorpicker.asp
Best Regards,
Movin
4alex
July 8, 2015, 1:41pm
3
Thanks Movin for the above; all the codes seem to work minus the first two. When I implement the code for first two, they are saved with errors (i.e. body .nav-tabs>li>a}. Everytime I try and correct it, it just repeats errors. Any suggestions?
Regards,
movin
July 9, 2015, 2:35pm
4
Hi @4alex ,
Sorry for that. It seems first two solutions are not working because of the issue with the custom CSS option as reported below.
opened 06:44AM - 05 Jul 15 UTC
closed 09:43AM - 10 Jul 15 UTC
I just noticed that if we save special symbol like greater than > in Custom CSS … theme option then on saving the CSS option the symbol gets converted to > as shown in the attached screenshots.
I have also confirmed this is happening for Dazzling theme also so it seems the issue with other Colorlib themes Custom CSS theme option.
![screenshot 19](https://cloud.githubusercontent.com/assets/11946142/8510594/34ac13de-230f-11e5-9c06-559b277bab8e.png)
![screenshot 20](https://cloud.githubusercontent.com/assets/11946142/8510595/34d6514e-230f-11e5-8cec-706251514d79.png)
You can instead try using the following code for the above two solutions.
body .nav-tabs li.active a {
background-color: #EEE;
border-color: #000;
color: #1e73be;
}
body .nav-tabs li a {
background-color: #EEE;
border-color: #1FA67A;
color: #81d742;
}
Cheers,
Movin
movin
July 13, 2015, 2:48pm
6
You are most welcome here