etapainfantil.com
Forum Replies Created
-
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesSorry, I have temporarily disabled the plugin because I have a lot of work to do. As I mentioned, in some parts with “get_avatar” the default image appeared. In functions I have nothing for that function.
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesI’m sorry but it is not possible to send it, but I can give you all the details you ask for. As I was saying, in the template you simply do a “get_avatar”.
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesYes, it may be that my theme is special. 😛 But the truth is that we are using “get_avatar” and it does not load the Gravatar in that place.
And the other WP error is a timeout, the “Precache & check” must take a long time…
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesAfter the update, it fails in the author part: https://www.etapainfantil.com/habitos-hijo-adquirir-antes-adolescente (Although you may have to deactivate the plugin and you cannot see it here)
https://www.etapainfantil.com/wp-content/uploads/gravatar-cache/3826e0d4be68fbd7c0380cef98560ba2-75.jpgI have checked the config of the plugin and it seems to be fine.
I also check that sometimes doing “Precache & check” takes a long time and WP gives critical error.
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesThe “content-single.php” thing I have not removed, so it automatically takes size… Although it can also be defined manually in the plugin config.
I added
$size_config = $size; and $size = $size_config;to check… maybe it can be done differently in the function, since I suppose it should always take the parameter of the function …Thanks. Paint that update well. Pending.
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesThe first in 809.
$size_config = $size;And the next in 1140.
$size = $size_config;It is simply to force it to take the size of the function parameter.
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesI just defined it at the beginning to take it with me.
$size_config = $size;Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesIf in line 1140 I put “$size = $size_config;” ($size_config is parameter of the function) it works. That’s why. It should not take the size of the image, but the parameter…
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesI think I already know where the problem is. In line 1143 of “harrys-gravatar-cache.php” it is forced to the size obtained from the image itself, it does not take the one of the “get_avatar” function parameter. You can fix it?
Thank you!
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesDo you know why it might be changed in comments? It is forced to 48 px (even in the original function) and at the end it is set to 75 px.
Thanks.
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesI have put that, I have added 75 in the plugin config and the author takes it but for some strange reason, it adds 75px in the comments avatar although in get_avatar it forces 48. Can you think of where you are changing? I’ve been modifying even the get_avatar function to test and then in HTML it says 48.
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesYou mean add it directly to the plugin’s “harrys-gravatar-cache.php” file for testing?
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesI think the file that it finds with some of those functions is “comments.php”:
wp_list_comments (array ('callback' => 'bambino_comment', 'avatar_size' => 48));Maybe this is the problem, the first one it finds and generates is this of 48, if it took “content-single.php” it would work because it would take 75.
How can I add “content-single.php” at the beginning?
- This reply was modified 5 years, 1 month ago by etapainfantil.com.
- This reply was modified 5 years, 1 month ago by etapainfantil.com.
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesSorry, I don’t understand what you mean. What do you need exactly?
Right now the plugin is deactivated, you can see what is loaded in each case. Anyway, as I mentioned in article author and author page, I use the same function but load different images.
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesThe theme is our own and the function we use on both sites is the same:
get_avatar (get_the_author_meta ('ID'), 75);You can see all the cases here. I don’t understand why it loads different images.
https://www.etapainfantil.com/hijo-pide-agua-cuando-esta-cama
https://www.etapainfantil.com/author/mariajoseroldan
https://www.etapainfantil.com/hijo-pide-agua-cuando-esta-cama#commentsI already tried a long time ago and if I delete the cache and access the page where the largest is loaded, the largest is left in the cache. But when cache is cleared, it can load any one (and many times it is the small one).