Will Stocks
Forum Replies Created
-
Forum: Plugins
In reply to: [Gutenberg] Can’t underline textThanks @clorith – but in theory doesn’t the same “issue” exist for strikethrough, yet that remains?
I must admit, I haven’t ever used a screen reader to validate my content, however it does surprise me that a screen reader can’t tell the difference between an underline vs a link? I will have to research how screen readers work, but I have always assumed that they also parse the HTML that’s output? Therefore Link vs <p style=”text-decoration:underline;”>Underline</p> should be fairly easily distinguishable.
More research for me to do I guess!!!
- This reply was modified 7 years, 4 months ago by Will Stocks.
- This reply was modified 7 years, 4 months ago by Will Stocks.
Forum: Plugins
In reply to: [Optimum Gravatar Cache] “home page” avatar not updatingHi @jomisica
I’m adding the following to my install:case 'w3-total-cache': foreach ($postsIDsToClear as $postIDToClear) { w3tc_flush_post((int)$postIDToClear); } break;and
if (defined('W3TC')) { $this->cachePagePlugins='w3-total-cache'; return; }That way, I can ensure OGC clears the relevant page caches for the posts affected (as I have a feeling this is some sort of weird caching thing).
Happy to PR this into your repo if you’ve GitHub’ed OGC (assuming a private repo?)Forum: Plugins
In reply to: [Optimum Gravatar Cache] “home page” avatar not updatingThe only reason I pull the 200×200 is for retina reasons. In theory, if the image is a 100×100 square, pulling the 200×200 image should satisfy retina?
2.jpg, 3.jpg and 4.jpg are all the same image – just various sizes. It looks like 2.jpg has updated overnight now and I’m seeing the same image everywhere except single posts (which is 3.jpg). I’ve even cleared page caches 🙁
RE: Sidebar avatar – that makes sense. The only reason I use
get_avatar_urlis due to the way that the widget is built. I’d have to replace a load of stuff withget_avatarand then patch a load of other bits and pieces in afterwards – then when my theme updates (which usually brings plugin updates with it), I would have to rework all of that.get_avatar_urlwas just the easier option!Forum: Plugins
In reply to: [Optimum Gravatar Cache] “home page” avatar not updatingRE: the first part of the issue:
Homepage: https://cdn.willstocks.com/wp-content/uploads/optimum-gravatar-cache/avatar/2.jpg?d=thb95k – this shows the incorrect gravatar (old one)
But: https://cdn.willstocks.com/wp-content/uploads/optimum-gravatar-cache/avatar/2.jpg – this shows the CORRECT one (new one). It looks like the date param throwing it off for some reason?Forum: Plugins
In reply to: [Optimum Gravatar Cache] “home page” avatar not updatingNote – the sidebar gravatar is being generated via:
<?php echo esc_url( get_avatar_url('will@willstocks.co.uk', array('width'=>'160', 'height'=>'160'))); ?>– slightly different to everywhere else on my site I believe. I’m still unsure as to why OGC hasn’t pulled the right gravatar image for single posts though?Forum: Plugins
In reply to: [Optimum Gravatar Cache] [Feature Req] Last check dateAhhh, nice one! Thanks @jomisica
Forum: Plugins
In reply to: [WebP Express] How does this work?I was just about to ask the same thing. I can’t quite work out from the description if this is “simply” (although I’m sure not “simple”) rewriting URLs or is converting, storing and
<picture><source>‘ing with webp and fallback to jpeg/png?@roselldk are you able to advise exactly what this is doing?
I use S3/Cloudfront to store my images (via: WP Offload (https://wordpress.org/plugins/amazon-s3-and-cloudfront/)) and I can’t quite work out whether this plugin will create a .webp version of each responsive image size to serve, or whether it’s doing conversion on-the-fly?
Ahhhh, OK makes sense!
I manually convert my “full” images to WebP prior to upload – so until I can budget for Smush Pro I’ll continue to investigate plugins that might allow me to “manually” define WebP with fallback. It’s tricky to find!
Forum: Plugins
In reply to: [Local Emoji] Allow use of CDN for emoji’s?Hey @kakise – are you able to advise on this at all?
Forum: Plugins
In reply to: [W3 Total Cache] BrotliHi @superpoincare – I’m aware of that, what I’m actually asking is how exactly you enable it if it’s greyed out (which it is for me). What are the requirements?
Forum: Plugins
In reply to: [Amazon Associates Link Builder] Gutenberg compatibility?@amazonlinkbuilder – is there any news/update/timeline with regards to this? AALB is a great way for visitors to visualise things (as opposed to just written words or links) and I love the “Price Link” feature as well!!!
I, personally, don’t agree with @robbcapp’s suggestion in the slightest. If you’re a classic editor kinda person, so be it. But “use the classic editor for the next 2 to 3 years” just to use a plugin that’s not catching up to the direction that WP is going (whither you like it or not!) doesn’t make sense.
There’s at least 9 million sites out there running 5.0+ with Gutenberg (https://gutenstats.blog/ & https://wordpress.org/about/stats/ ) and with Gutenberg being default for all new WP installs, Amazon is losing out on a good amount of users here?
Woohoooo – all sorted! 🙂
Thanks guys!
I’ve gone with:
add_filter( 'jetpack_implode_frontend_css', '__return_false' ); function remove_jetpack_commentlikes_from_nonsingle() { if( ! is_single() ) { //Jetpack apply_filters ( 'wpl_is_index_disabled', '__return_true'); wp_dequeue_style('jetpack_likes'); wp_dequeue_script('postmessage'); wp_dequeue_script('jetpack_resize'); wp_dequeue_script('jetpack_likes_queuehandler'); } } add_action( 'wp_enqueue_scripts', 'remove_jetpack_commentlikes_from_nonsingle' ); add_action('wp_print_styles', 'remove_jetpack_commentlikes_from_nonsingle' );Which has done the trick – the only thing I’m not 100% sure about is whether I should be using
wp_print_stylesorwp_enqueue_scripts?Thanks @supernovia – I’ll give
add_filter( 'jetpack_implode_frontend_css', '__return_false' );a go to see if that makes any difference!So if I add the following:
remove_jetpack_commentlikes_from_nonsingle() { if( ! is_single() ) { //Jetpack add_filter( 'jetpack_implode_frontend_css', '__return_false' ); apply_filters ( 'wpl_is_index_disabled', '__return_true'); wp_dequeue_style('jetpack_likes'); wp_dequeue_script('postmessage'); wp_dequeue_script('jetpack_resize'); wp_dequeue_script('jetpack_likes_queuehandler'); } } add_action( 'wp_enqueue_scripts', 'remove_jetpack_commentlikes_from_nonsingle' );In theory this would do the trick?
Thanks guys – I was kind of hoping to avoid having yet another plugin though 🙁
Forum: Plugins
In reply to: [Autoptimize] Question – wp_enqueue_*Ahhhh, nice one thanks Frank! I wasn’t really sure what to search for haha! 🙂
Stackoverflow to the win once again