mailto form

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Jul 17, 2013 10:24 am
Reply with quote
Report this post
Where can I edit the mailto form, when I choose email article it opens a form with the color 1 sheme.

thanks
User avatar
Senior Boarder

GK User
Wed Jul 17, 2013 5:57 pm
Reply with quote
Report this post
Hi, yes but from Style1 (default) are only colors of buttons nothing more.

This mailto component is not overridden by template - so search here:
components\com_mailto\views\mailto\tmpl\default.php

As you see it uses:
Code: Select all
<button class="button" ...


to change it add style="background:YourColor"

or create your own override rule
User avatar
Platinum Boarder

GK User
Wed Jul 17, 2013 10:43 pm
Reply with quote
Report this post
thank you
User avatar
Senior Boarder

GK User
Wed Jul 24, 2013 10:26 am
Reply with quote
Report this post
There is something I still don't understand there is a /templates/gk_magazine/css/system/mailto.css but when I edit that nothing changes, after that I saw in the code the link to the templates/gk_magazine/css/k2.css, the elements are all there the button, text and border styles, how come it doesn't change the appearance of the mailto form?
User avatar
Senior Boarder

GK User
Wed Jul 24, 2013 11:09 am
Reply with quote
Report this post
And the reason why I don't understand that is when you say it is not overridden by the template and it still uses the #4d90fe and #fec64d on hover which are the style1 colors and those colors have to be written somewhere and no matter which file I edit changing those color when I inspect the element in chrome it still tells me in the CSS rules that in /index.php/component/mailto/:95 that the button.hover has a background #fec64d. Where is that specific file with that code in it?
User avatar
Senior Boarder

GK User
Wed Jul 24, 2013 7:59 pm
Reply with quote
Report this post
after that I saw in the code the link to the templates/gk_magazine/css/k2.css, the elements are all there the button, text and border styles, how come it doesn't change the appearance of the mailto form?



"Mailto form" is for Joomla articles not for K2 items, probably that's why.


Why don't you used simple CSS based on ID from component

Code: Select all
#mailto-window button.button  {background:green !important}


This should work for buttons in popup Mailto form. Try it. Relax this is only button in place where almost nobody clicks :P
User avatar
Platinum Boarder

GK User
Wed Jul 24, 2013 11:25 pm
Reply with quote
Report this post
I'll give it a shot :) I know it's not important it's just the thing when something is bugging you :), but at least I get it now, the thing between joomla articles and K2 items, makes sense now

thank you :)
User avatar
Senior Boarder

GK User
Thu Jul 25, 2013 11:17 pm
Reply with quote
Report this post
Yes, K2 can be difficult to understand.
Probably soon Joomla 3.x will be so advanced that you will not need to use K2.
Read my article (comparison) --> http://www.gavick.com/documentation/joo ... oomla-3-1/
User avatar
Platinum Boarder

GK User
Sun Jul 28, 2013 1:11 pm
Reply with quote
Report this post
Ok now I get the whole picture, I was also wondering why both and which to use.

Thanks
User avatar
Senior Boarder


cron