Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

Change color of selected text.

11-03-2014, 02:05 PM
# 1 (permalink)
mariopap
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
11-04-2014, 05:45 AM
# 2 (permalink)
arefund
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.
Kindness costs the least, but is worth the most!
11-04-2014, 06:18 AM
# 3 (permalink)
mariopap
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
11-04-2014, 06:25 AM
# 4 (permalink)
arefund
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.
Kindness costs the least, but is worth the most!
11-04-2014, 06:30 AM
# 5 (permalink)
mariopap
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
11-04-2014, 06:35 AM
# 6 (permalink)
arefund
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.
Kindness costs the least, but is worth the most!
11-04-2014, 06:52 AM
# 7 (permalink)
mariopap
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.
11-04-2014, 06:56 AM
# 8 (permalink)
arefund
By color.css i mean the color that you are using, example blue.css file

Screenshot by Lightshot
Kindness costs the least, but is worth the most!
11-04-2014, 07:08 AM
# 9 (permalink)
mariopap
Yes ok I found the code, comment it, and still not to go.

Just drop it my friend.

Thanks for your help .

BYe
Thread Tools
Display Modes

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

Members Login

Username
Password