By lindyhopper on Wednesday, 06 November 2013
Posted in General Issues
Replies 16
Likes 0
Views 885
Votes 0
Hi,

I would like to change the yellow blog labels in th stream and make it for example light blue.

How can i achieve this ? which lines must i change and where ?

Hope there is a way to do this
this is what i would like to change if possible

·
Wednesday, 06 November 2013 10:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Peter,

You can actually modify the labels for the blog by editing the language file /administrator/language/en-GB/en-GB.plg_app_user_blog.ini and locate the codes below:


COM_EASYSOCIAL_STREAM_CONTEXT_TITLE_BLOG
·
Wednesday, 06 November 2013 18:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry Mark, i was not clear, i would like to change the color not the text. I have looked in the wireframe style css but i can't find where to change this so i don't know what override i need to add to my template css
·
Wednesday, 06 November 2013 19:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

The change the color of the label, open the file JOOMLA/media/com_easysocial/apps/user/blog/blog.php and look below code at line 94:

$item->color 	= '#e9db66';


You can change the color in inside the quotes to the color code you want

Hope this help and have a nice day
Sam
·
Wednesday, 06 November 2013 19:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Great ! thanks !
·
Wednesday, 06 November 2013 19:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

On behalf of Sam, you're welcome.
·
Wednesday, 06 November 2013 20:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason & Sam,

Does the modification you suggested above gets overwritten on version upgrades?

Thanks!
·
Thursday, 07 November 2013 01:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

For this case yes because the code modification is in PHP.
·
Thursday, 07 November 2013 09:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason,

not a good solution I guess. Just a suggestion, I don't know if Foundry has a color picker library but it would be nice to just have this color values pulled from the Backend settings or simply defined in style.css instead of hardcoding the color in php.

I am creating a customized Theme for our website and was thinking of changing this colors. But since you said it will be overwritten :P I will have to leave it alone for now.

Thanks Jason! - Jackson
·
Thursday, 07 November 2013 09:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

The reason why it is in PHP is because we allow app developers to determine what color and label they would like to use. This is not controlled directly via theme because some of the interface are generated by factory.
·
Thursday, 07 November 2013 09:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi guys,

I must admit i am worried with the override/update situation too

White text on yellow background is not verry visible and this is not good for me beacause my site is based on the esaysocial and easyblog integration the blog label will be one of the most important labels to see at a glance. i need it to be visible. (ok thi is part my fault because i don(t use test-shadows)

I care about this enougth to upload the php file each time there is a easysocial update if i have to... but i agree that a css override would be much much better

As we can change in php, this means that the app developers can determine what color and label they would like to use, but we already can too, just we have to work more and not forget to mod php file at each update. This being the case would the css solution be worse for app developers ? (i am not a developer, this is an honest question, i do not know what is involved)
·
Thursday, 07 November 2013 11:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi guys,

To override the label color with css, try to add below css code into your template css file:


li.type-blog div.es-stream-meta span.label {
background: #CCCCCC !important;
}


Just change the color code to the color you want

Hope this help and have a nice day
Sam
·
Thursday, 07 November 2013 11:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Works like a charm !

You guys are the best
·
Thursday, 07 November 2013 12:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Peter,

Glad to hear it worked
Have a nice day
Sam
·
Thursday, 07 November 2013 12:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Jason Rey wrote:
The reason why it is in PHP is because we allow app developers to determine what color and label they would like to use. This is not controlled directly via theme because some of the interface are generated by factory.


Hi Jason,

Got it! So this is an app thing hmmm... wouldn't it be nice to make this an App setting then instead of a CSS override.

Thanks! - Jackson
·
Friday, 08 November 2013 01:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jackson,

Got it! So this is an app thing hmmm... wouldn't it be nice to make this an App setting then instead of a CSS override.


Thanks for your feedback and your suggestion. We will see if we can include this into EasySocial 2.0 or not
Have a nice day
Sam
·
Friday, 08 November 2013 10:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post