By Christian van Laarhoven on Monday, 20 November 2017
Posted in General Issues
Likes 0
Views 463
Votes 0
Dear Stackideas,

In the update 2.1.5 there is something going on with the inline style.
there's a css rule added with !important so it is impossible to overwrite this code...

Could you tell me why this is done, and how it can be edited?

The css rule:
<style type="text/css">
#es .es-story-privacy .es-privacy .es-privacy-toggle,
#es .es-story-privacy .es-privacy .es-privacy-toggle:hover,
#es .es-story-privacy .es-privacy .es-privacy-toggle:focus,
#es .es-story-privacy .es-privacy .es-privacy-toggle:active,
#es .btn-es-danger:hover,
#es .btn-es-danger:active,
#es .btn-es-danger,
#es .btn-es-default:hover,
#es .btn-es-default:active,
#es .btn-es-default,
#es .btn-es-success:hover,
#es .btn-es-success:active,
#es .btn-es-success,
#es .btn-es-primary:hover,
#es .btn-es-primary:active,
#es .btn-es-primary {
background-color: #fff !important;
}
</style>

We had a lot of css before and these codes are now all overwritten by this inline style code in de the head of the website by Easysocial..

could you please advice?

Kind regards,
Hugo van Leeuwen
Van Laarhoven Websites
Hi Hugo van Leeuwen,

Currently the only way to 'turn off' the button styling is to use template overriding method.

To do this, create a 'custom.css.php' and place this file in your Joomla template override folder for EasySocial in 'structure' folder.
E.g.
JOOMLA/templates/[your_template]/html/com_easysocial/structure/custom.css.php

In your custom.css.php file content, you can put and empty style tag:


<style type="text/css">
</style>


Please see: http://take.ms/sITdp

Hope this help and have a nice day.
Sam
·
Monday, 20 November 2017 19:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Hugo van Leeuwen,

In EasySocial 2.1 we actually introduced a new feature where admin can configure the styling of the buttons used in EasySocial. You can now change these buttons styling from EasySocial backend under Settings -> Layout -> Styling.

http://take.ms/tT3SSk

Hope this help and have a nice day
Sam
·
Monday, 20 November 2017 19:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam,

Thanks for your quick reply!
Is it also posible to turn this option off and use our own style?

I think this option is not very helpful for us. Is do understand why this is build in but for us it would be better to disable it.

Kind regards,
hugo avn Leeuwen
·
Monday, 20 November 2017 19:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam,

That helped me alot! Thnx!

Have nice day.

Kind regards!
Hugo van Leeuwen
·
Monday, 20 November 2017 19:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Monday, 20 November 2017 23:01
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post