Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

How to change the icon in Livechat

Open chainmueller opened this issue 9 years ago • 21 comments

Rocket.Chat Version: 0.55.1 Running Instances: 1 DB Replicaset OpLog: Disabled Node Version: v4.8.1

RC is running with docker-compose

Hello,

how can I change the icon in the lower right corner of the livechat window?

thanks in advance

chainmueller avatar Jun 01 '17 07:06 chainmueller

@chainmueller @sampaiodiego @MartinSchoeler Did you find any solution to the above issue.

My current issue: I get a rectangular bar for live chat on lower right on my web page. But I wanted it to change to something like chat button.

In live chat I can see "Appearance" option where I can change in preview option to chat Window or chat button. But when i make it chat button, I am not able to see it as button.

Any help on this? urgently need a solution.

rahul7471 avatar Jun 07 '17 10:06 rahul7471

@rahul7471 you cannot change it the way you want.. you can only change its color and text at the moment.

@chainmueller which icon specifcally do you want to change?

sampaiodiego avatar Jun 07 '17 12:06 sampaiodiego

@sampaiodiego thanks for quick reply. I wanted to make this icon as chat button icon

as chat button

Something like this chat

rahul7471 avatar Jun 07 '17 13:06 rahul7471

@sampaiodiego thanks for your reply. We would love to change the Rocket.Chat logo at the bottom into ours.

chainmueller avatar Jun 20 '17 06:06 chainmueller

@chainmueller the only way to change the "powered by logo" is editing the source code and building it from source.

if you would like to change the widget look and fool like @rahul7471 , that will be possible on the future.

sampaiodiego avatar Jul 03 '17 14:07 sampaiodiego

@sampaiodiego

@chainmueller the only way to change the "powered by logo" is editing the source code and building it from source.

Do you know what file needs to be edited? we are running rocket chat on ubuntu 14.04 from a snap and can not seem to find the file.

martman0823 avatar Jul 05 '17 22:07 martman0823

@sampaiodiego I thought so. Thank you for your answer.

@martman07 as @sampaiodiego mentioned, you cant change it in compiled state. You have to take the sourcecode, make your changes and build it from source.

Source Code: https://github.com/RocketChat/Rocket.Chat

And I think these are the two sourcefiles where the changes have to be made. Pls correct me if I am wrong:

https://github.com/RocketChat/Rocket.Chat/blob/744d25a6264c0daf3c3c357fc65754010c4fa476/packages/rocketchat-livechat/app/client/views/poweredBy.html https://github.com/RocketChat/Rocket.Chat/blob/6ad93856d20720e219e808c824de11967ceffded/packages/rocketchat-livechat/app/client/stylesheets/main.less

chainmueller avatar Jul 06 '17 07:07 chainmueller

that's right @chainmueller ..

I'll close the issue since it looks like resolved =)

sampaiodiego avatar Jul 06 '17 11:07 sampaiodiego

I also wanted a Drift-style chat button. I was able to make it work with this css (which goes in the head of the page where livechat is being embedded):

@media(max-width:991px) { [data-state="closed"], [data-state="opened"], .rocketchat-container, #rocketchat-iframe { display:none !important; } }

[data-state="closed"] .rocketchat-container, [data-state="closed"] #rocketchat-iframe{ display:none; } [data-state="opened"] .rocketchat-container, [data-state="opened"] #rocketchat-iframe{ display:block; } [data-state="closed"] i, [data-state="opened"] i { padding: 15px !important; width: 50px !important; z-index: 999999999999999999999999999999 !important; display: block !important; height: 50px !important; } [data-state="closed"]::before { font-family: FontAwesome !important; content: "\f086" !important; color: #fff !important; font-weight: 600; float: left; FONT-SIZE: 19PX !IMPORTANT; height: 50px; PADDING: 11px 15PX !important; } [data-state="closed"] #rocketchat-iframe { padding:25px; } [data-state="opened"] #rocketchat-iframe { display:inline-block; } [data-state="opened"] { height:300px !important; } div[data-state="closed"], div[data-state="closed"] #rocketchat-iframe, div[data-state="closed"] .rocketchat-container { width: 50px !important; height: 50px !important; position: fixed !important; border-radius: 25px !important; bottom: 25px !important; right: 25px !important; background:royalblue !important; } div[data-state="closed"]:hover #rocketchat-iframe, div[data-state="closed"]:hover, div[data-state="closed"]:hover .rocketchat-container { background:#0a7eff !important; transition:background 0.3s; }

div[data-state="opened"], div[data-state="opened"] #rocketchat-iframe, div[data-state="opened"] .rocketchat-container { display: block !important; visibility:visible; }

and this JS, (I'm using jQuery, but it could be refactored for other frameworks easily)

Here's the result: chatbutton

Hopefully someone who's familiar with RocketChat's build process can add this as an option.

startupengine avatar Jan 08 '18 05:01 startupengine

Has there been any movement on the live chat widget customization front?

Decoupling it's UI from rocket chat source seems pretty desirable

tim-soft avatar Mar 31 '18 02:03 tim-soft

@tim-soft yes, we have plans to re-write the widget in react and with that add some more customizations. but this is for a mid-term milestone

sampaiodiego avatar Apr 02 '18 13:04 sampaiodiego

Hi @startupengineIO, I used your css I was able to get the chat icon but its not like what you have it in the image, there is no chat image on the icon there is just a square box like below.

image

Can you please help me out. Thank you

shahzad285 avatar Sep 13 '18 07:09 shahzad285

Hi @startupengineIO, I used your css I was able to get the chat icon but its not like what you have it in the image, there is no chat image on the icon there is just a square box like below.

image

Can you please help me out. Thank you

check the code, he's using Font Awesome. Check on their website how to install font awesome.

tikmaster avatar Sep 14 '18 00:09 tikmaster

In the css @startupengineIO remove this [data-state="closed"]::before { font-family: FontAwesome !important; content: "\f086" !important; color: #fff !important; font-weight: 600; float: left; FONT-SIZE: 19PX !IMPORTANT; height: 50px; PADDING: 11px 15PX !important; } and add image of chat icon like this using content div[data-state="closed"], div[data-state="closed"] #rocketchat-iframe, div[data-state="closed"] .rocketchat-container { content:url('../images/chat_box.png'); width: 50px !important; height: 50px !important; position: fixed !important; border-radius: 25px !important; bottom: 25px !important; right: 25px !important; background:white !important; }

abhiram595 avatar Oct 02 '18 08:10 abhiram595

HI @abhiram595 @gkarmas Thankyou for your response I was able to fix it as mentioned by Abhiram but I forgot to comment here. It will help others.

Thankyou

shahzad285 avatar Oct 09 '18 13:10 shahzad285

Thank you.I am glad.It worked for you :)

abhiram595 avatar Oct 09 '18 14:10 abhiram595

@sampaiodiego hey, has there been any updates on this? :)

stevenjwright avatar May 07 '20 06:05 stevenjwright

the new widget is live https://github.com/RocketChat/Rocket.Chat.Livechat

but there is no option to remove the logo.. @renatobecker might be able to provide more info if this is planned or not.

sampaiodiego avatar Jun 18 '20 18:06 sampaiodiego

@sampaiodiego hey, has there been any updates on this? :)

We're planning to make big changes/improvements to the Livechat Appearance feature in the short-term and yes, the ability to add company branding is part of the plan.

renatobecker avatar Jun 18 '20 23:06 renatobecker

@sampaiodiego hey, has there been any updates on this? :)

We're planning to make big changes/improvements to the Livechat Appearance feature in the short-term and yes, the ability to add company branding is part of the plan.

Any update yet? I dont even mind changing the icon, just would love to put "live chat" under it so its more obviously a chat button. A lot of people wont recognise the rocketchat logo as a chat button.

Skjolbir avatar Dec 08 '20 15:12 Skjolbir