Widget Plugin error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hi

I´m developing a new widget plugin but get an error 500 internal server error when saving this in the plugin script field:

<style type="text/css">
.tpc_widget {
display: none;
position: relative;
width: 160px;
height: 320px;
}
#tp_widget .tpc_bg {
background-color: #FFFFFF;
}
#tp_widget .tpc_bottom {
background-color: #FFFFFF;
}
</style>

It´s the part in bold causing the error as if left out it´s able to save without error.

Any suggestions why this causes the error?
12 years ago
Does CSS support # selector?
12 years ago
If i inserts the same code manually on the site instead of via plugin it´s working.

I don´t understand why I get the internal server error when saving on the plugin configuration site.
It most be in the save process of plugin something goes wrong.
12 years ago
How about moving them into external .css file (like 'Nop.Plugin.ExternalAuth.OpenId' plugin does)?
12 years ago
a.m. wrote:
How about moving them into external .css file (like 'Nop.Plugin.ExternalAuth.OpenId' plugin does)?


Sounds like an good idea, I will try to do that, thanks for your help :-)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.