John Regan
Forum Replies Created
-
Hi nativemary,
It looks like there is CSS hard-coded in the page. If you View Source, then copy the content to a text editor that shows line numbers, around line 178 you’ll see <style> tags containing the CSS that is actually coloring the item backgrounds. This is overriding the CSS from the Simple Custom CSS plugin. I’m not sure if this is put in by the plugin or the developer, but it’s problematic. Just as a general rule, we should avoid using !important at all costs, as it causes lots of issues.
The best way to avoid using !important is through CSS selector specificity. Here’s a helpful resource on that: https://reference.sitepoint.com/css/specificity
Unfortunately, because Simple Custom CSS is a free plugin, I just don’t have the resources to provide further support on this issue. I do appreciate you using this plugin, and I hope I’ve pointed you in the right direction toward resolving this issue.
Happy Holidays!
Forum: Plugins
In reply to: [Simple Custom CSS Plugin] quotation marks get turned into HTML entitiesMarking as resolved
Marking this issue as resolved. If you have any further questions, jamiechong, just ask it here and I’ll be notified.
Forum: Plugins
In reply to: [Simple Custom CSS Plugin] @charsetHi madpixels,
I understand exactly what you’re saying. I’ve been escaping the output of the css to due to security concerns, but I’m seeing that this is causing problems for some people. Sometime soon, I’ll release an update that allows for the disabling of this security feature so that double quotes can be used. I can’t say exactly when that will be, but it is the highest priority for my next release.
Thanks for helping make this plugin better!
John
Forum: Plugins
In reply to: [Simple Custom CSS Plugin] quotation marks get turned into HTML entitiesHi Dion,
In my first response to this thread, I mentioned that I use an escaping function due to security concerns. I’ve had a few other people mention that they’d like to use double quotes in their CSS, so I plan to include an option to disable this function in my next release. I can’t say exactly when that will be, but it is top priority for my next release. I think it will help your situation quite a bit.
Thanks!
John
Hi jamiechong,
I understand exactly what you’re saying. I’ve been escaping the output of the css to due to security concerns, but I’m seeing that this is causing problems for some people. Sometime soon, I’ll release an update that allows for the disabling of this security feature so that double quotes can be used. I can’t say exactly when that will be, but it is the highest priority for my next release.
Thanks for helping make this plugin better!
John
Great. Glad I could help!
Forum: Plugins
In reply to: [Simple Custom CSS Plugin] quotation marks get turned into HTML entitiesShoot. I just realized I forgot my closing brackets on the jQuery. It should be more like:
jQuery( ‘input’ ).each( function() {
if ( jQuery( this ).attr( ‘placeholder’ ) == ‘Your email address’ ) {
jQuery( this ).addClass( ‘myclass’ );
}
});Forum: Plugins
In reply to: [Simple Custom CSS Plugin] quotation marks get turned into HTML entitiesHmmm. That’s a tough one. We shouldn’t ever directly edit plugins, because our work can be deleted when they are updated (You probably already know that. I’m just writing it here in case someone else views this thread).
One hacky method around this is to use jQuery to target that input, then add a class that way. Something like
jQuery( ‘input’ ).each( function() {
if ( jQuery( this ).attr( ‘placeholder’ ) == ‘Your email address’ ) {
jQuery( this ).addClass( ‘myclass’ );
}Then in your CSS you can do something like:
input.myclass {
–some style–
}Of course this is hacky — not the optimal way to do it, but it should get the job done in a pinch. Also, keep in mind that this is untested code, so you may have to fudge with it to get it to work.
Anyway, I just wanted to take a shot at solving this issue. Thanks again for using this Plugin!
John
Hi 8persap,
When I try to look at https://iski-val.com, I get redirected to the subdirectory website, so I can’t exactly see what’s going on. If you could, on the root site, check your <HEAD> for a <LINK> with a url that ends with “?sccss=1&ver=3.6.1” Then, open that URL and ensure it is a css file containing your CSS.
If you could do that much for me, it would give us a good start on solving this.
Thanks for your question!
John
Forum: Plugins
In reply to: [Simple Custom CSS Plugin] quotation marks get turned into HTML entitiesHi Dion!
This is a bit tricky. I’m using an escaping function ( esc_html() ) on the output to prevent major destruction that can be caused by errors in the input. That’s why the double quotes are being converted.
I’m sure you have a good reason, but I’m curious as to why you can’t add a class to the input to differentiate it from the other. That would be the best solution for this problem.
Could you give me some more information on that?
Thanks!
Forum: Plugins
In reply to: [Simple Custom CSS Plugin] Not working with pretty permalinksHi Francesco and DistrictOperator,
Thanks for the input. I’ve double-checked this on my local version, and everything seems to be working smoothly with all types of permalinks. Have you tried disabling other plugins to see if that helps?
I appreciate you letting me know about this!
Forum: Plugins
In reply to: [Simple Custom CSS Plugin] Problem with many lines of codeThanks, Jims!
Forum: Plugins
In reply to: [Simple Custom CSS Plugin] Problem with many lines of codeHi Jims!
Thanks for notifying me about this. I’m always looking for ways to improve my plugins, and this will definitely help.
I’m guessing that there’s some kind of limit on the number of lines we can add using the wp_enqueue_scripts hook, but I don’t know for sure offhand. I’ll have to do some research.
This plugin was originally designed for short snippets of CSS, which doesn’t help everyone in every situation. Based on some other requests, I’ve been thinking about writing another version of this plugin that acutally writes to a CSS file, then adds it to the head. That might be a better solution for those looking to add greater amounts of CSS.
I guess this doesn’t exactly solve your issue yet, but know I’m working on it. If/when I release the new type of CSS plugin, I’ll be sure to let you know!
John
Forum: Plugins
In reply to: [Simple Custom CSS Plugin] Working in Safari but not FirefoxIt looks like it was “Private Only,” which I’m not familiar with. I hope this helps!