Daniel Hendricks
Forum Replies Created
-
Forum: Plugins
In reply to: [Carbon Fields] Field ValidationAre you using the 1.6 version of the plugin here, or a newer version (it is recommended that you use the latest). There are 2 on save filters for fields:
https://carbonfields.net/docs/advanced-topics-hooks/I can’t link to the specific section because that page doesn’t have section IDs, but scroll down to the “Field” section. There are some container actions, too – you may wish to do a Find in your browser for “_save” (minus quotes) to see the others.
Forum: Plugins
In reply to: [Safe SVG] SVG Image Widht and Height ValuesWordPress reports SVG dimensions as 0x0.
I get what you’re saying – it would be nice if it would set the img width/height to the art board size (simply for convenience, rather than 0x0 which is invisible), which can easily be overridden with CSS.
That said, is it better to default to its art board size, or is it better to set the dimensions of all SVGs to “width: 100%; height: auto;” since you’ll have to set individual sizes for certain vectors anyway (ie, those that should not span or are default-sized incorrectly)? Personally, I feel like the latter is more desirable, I think.
Forum: Reviews
In reply to: [Safe SVG] Changes the gameI don’t know why Automattic doesn’t add this plugin to core.
(Rhetorical; for some reason they have an axe to grind with SVG.)
Forum: Plugins
In reply to: [Safe SVG] 2 problems…Quid pro quo, Clarice. I asked for the vector and you gave me a screenshot.
That aside, in your (S)FTP client and in the web root (where wp-config.php is usually located), there is likely a file called
.htaccess
. Depending on your (S)FTP client, it may be hidden… you may have to do something like View > “Show Hidden Files” or similar (it varies by client).If you edit that file, you can add
AddEncoding gzip svgz
to it. There is a high probability that it won’t work, which is why I asked for the SVG(z), but it is free to try.Forum: Plugins
In reply to: [Safe SVG] 2 problems…when I open the .SVG or the .SVGZ file in my browser window, both files are complete and in working order.
Were they opened from the web site, or from your local computer? You might see the note on
AddEncoding gzip svgz
here: https://www.ads-software.com/support/topic/svgz-is-not-visible/Also, do you have a link to the SVG(z) that we can see?
Aside from enabling the JS method, what is the minimum required version of PHP that is supported via the PHP method?
Thank you,
DanielForum: Plugins
In reply to: [Meta Box] Licensing & ExtensionsActually, please ignore. I found these answers here.
Forum: Plugins
In reply to: [Carbon Fields] Fatal Error When Activated On Site Also Using v2.0.3You should be doing version checking.
Forum: Plugins
In reply to: [Safe SVG] convert in illustratorGenerally, if you’re trying to convert a bitmap to vector, you’re going to need to trace it and/or auto-trace. However, if you are able the view the image in Finder or Explorer, then the exported SVG is probably valid (just make sure you “Create Outlines” on fonts, if any, else they may not work if the browsers(s) do not have the same font(s) installed on their system that you used.
It sounds to me like you’re having an issue with WordPress blocking SVGs by default. There are plugins like “SVG Support” (https://www.ads-software.com/plugins/svg-support/) that may help. I usually just use an mu-plugin that I found (https://github.com/Lewiscowles1986/WordPressSVGPlugin/blob/master/wp-content/plugins/lc-wp-svg/index.php) that I install on every WordPress project to take care of it. It even worked when Automattic killed SVG MIME types in 4.7. I have zipped it up if you find it convenient (I didn’t write it – the author information is include the plugin if you’re curious): https://f001.backblazeb2.com/file/hendricks/tmp/enable_svg_uploads.php.zip
The code is all there and it’s rather simple + documented – you just copy the file to /mu-uploads, so you can look at it if you are reluctant to use code from an untrusted source (remember that it goes in /mu-plugins and not /plugins because of how it uses output buffering). I would personally try this first as it is an easy experiment – if it works, it is a cheap and effective solution. If it doesn’t work for your issue/needs, you can just delete the file. Always do a backup first! (though this plugin doesn’t touch any site data/filesystem, so it is pretty harmless)
Caveat: I have encountered one or two themes that use SVGs but do not site them correctly, so they look huge. This is rare, but it has happened. Again, if it doesn’t work for you, you can simply delete the file and try something else like the “SVG Support” plugin.
Good luck!
DanielEDIT – I can also be contacted if you have questions here: https://daniel.hn/contact
- This reply was modified 7 years, 4 months ago by Daniel Hendricks. Reason: Added some more tips
- This reply was modified 7 years, 4 months ago by Daniel Hendricks. Reason: Fixed a few typos
- This reply was modified 7 years, 4 months ago by Daniel Hendricks. Reason: Added my contact info
Just do a reset or go into the database and change it otherwise. It’s not like it is a world-ending issue.
Furthermore, given the point of this plugin, if your site really isn’t working just delete it and go through the famous 5 minute install.
Yeeesh! Some people…
Forum: Plugins
In reply to: [WooCommerce] Reset Password LoopThanks @m1k3k! I was banging my head trying to figure this one out.
I asked WP Engine support for a “cache exclusion” on
/my-account/
and it fixed the problem immediately. Cheers!Sorry, JM, I forgot to close this question after I e-mailed you and we talked briefly. Thank you for the follow-up, though! Great product – it does what it says that it does, and it does it well.
Forum: Plugins
In reply to: [Redis Object Cache] Faster than W3 Total Cache + Redis configuredI haven’t had issues with inappropriate things being cached by Redis Object Cache in WP Admin. If fact, I like whatever it does – even WP Admin runs faster, just I don’t have issues with stuff I don’t want being cached.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] admin-ajax.php returning 500 ISEThis is an old topic (and my response is unrelated to what caused this one), but for those who find this post in the future… That is a rather long URL and I’ve had issues in the past where some security plugins limit URL length (in an attempt to thwart injection attacks).
Sometimes, temporarily disabling and/or reconfiguring such plugins can reveal a culprit.
Cheers,
DanielForum: Plugins
In reply to: [Carbon Fields] Carbon Field Template (working example?)Excellent. Thank you for your help.
Daniel