Change color of selected text.
Hello.
Trying to change the selected text color but no luck. Using custom.css and code background: none repeat scroll 0 0 #cc1622; color: #fff; } ::selection { background: none repeat scroll 0 0 #cc1622; color: #fff; } But not working. Any help? Thanks Are you sure your are posting in product assigned forum?: Yes What is your CMS version?: Joomla 3.x MySQL Version: 5.x PHP version: 5.x Link to installation: Professional Joomla Templates,WordPress Themes - Joomla Templates Club Have you edited any files? If yes tell us which ones.: Yes Is this personal or client website?: Personal |
Hello mariopap.
Please go to templates/your_template/custom/yjsg_template_custom.php on line #27 and #28 you will see this: $cc_css .="::selection{background:".$style_color.";}"; $cc_css .="::-moz-selection{background:".$style_color.";}"; You can comment that or remove it so it can read your color from the custom.css file. Thank you. |
Hello.
Thanks for reply me ! I have remove the code you are reffering but something its loading after the custom.css it seems and it gives other color: Screenshot by Lightshot , the file that css is reffering it just gives the webpage. I dont understand why custom.css as the last file loaded not working . I have even replace the code in your file yjsg_template_custom.php with : $cc_css .="::selection{background:none repeat scroll 0 0 #cc1622; color: #fff;}"; $cc_css .="::-moz-selection{background: none repeat scroll 0 0 #cc1622; color: #fff;}"; But still no to go . Thanks |
Please try to go inside the template manager and clear cash and save so it can render the new colors if that is not working please advise.
Thank you. |
Thanks for reply me.
Still not to go . Screenshot by Lightshot I m sorry to trouble you we can drop it and leave as it is, its supposed to be easy . Thanks |
Please check your color.css also and see if there is also declared the selection bg.
After that do the clean cash and save and see if that works. Thank you. |
Hello.
I dont have color.css, using eximium template. I think we have spent lots of time , is just weird , dont know from where that selection on the top is coming, weird. Anyways. Thanks for your time. |
|
Yes ok I found the code, comment it, and still not to go.
Just drop it my friend. Thanks for your help . BYe |
| All times are GMT -4. The time now is 02:33 PM. |
Powered by vBulletin®
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.