Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   Eximium (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=278)
-   -   Change color of selected text. (http://www.youjoomla.com/joomla_support/showthread.php?t=13257)

mariopap 11-03-2014 02:05 PM

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

arefund 11-04-2014 05:45 AM

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.

mariopap 11-04-2014 06:18 AM

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

arefund 11-04-2014 06:25 AM

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.

mariopap 11-04-2014 06:30 AM

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

arefund 11-04-2014 06:35 AM

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.

mariopap 11-04-2014 06:52 AM

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.

arefund 11-04-2014 06:56 AM

By color.css i mean the color that you are using, example blue.css file

Screenshot by Lightshot

mariopap 11-04-2014 07:08 AM

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 06:47 PM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.