-
AuthorPosts
-
October 15, 2015 at 3:34 pm #519366
Hi!
I did everything as stated in this topic – https://kriesi.at/support/topic/latest-news-widget-thumbnail-picture-is-too-small/
My size ot the thumbs is 267px x 229px. But the size of the thumbs in the list of posts (in admin panel) became big too. How can I fix it and make them the same size as before?
I decided the first problem, but there was another.
I found the function prod_edit_columns, and edited it. All is good. But how to do it with the child-theme without editing files of main theme?- This topic was modified 9 years, 1 month ago by Regset.
October 16, 2015 at 8:47 am #519711Hi Regset,
Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.
Regards,
RikardOctober 16, 2015 at 12:39 pm #519851Yes!
October 18, 2015 at 11:27 am #520593Hi!
I checked the latest news widget and it has an inline style. It shouldn’t be there by default:
<a class="news-link" title="Палец пораженный гангреной" href="http://www.webplanets.ru/palets-porazhennyj-gangrenoj/" style="width: 100%;"><span class="news-thumb "><img width="267" height="229" src="http://www.webplanets.ru/file/2015/10/Gangrenous-Finger-SFX-makeup-tutorial-267x229.jpg" class="attachment-widget wp-post-image" alt="Gangrenous-Finger-SFX-makeup-tutorial" style="width: 100%;"></span><strong class="news-headline">Палец пораженный гангреной<span class="news-time">13.10.2015 - 21:05</span></strong><span class="image-overlay overlay-type-extern" style="left: -1px; top: 8px; overflow: hidden; display: block; height: 229px; width: 277px;"><span class="image-overlay-inside"></span></span></a>
Notice the “style=”width: 100%;” part? Did you add any javascript?
Cheers!
IsmaelOctober 18, 2015 at 6:15 pm #520655Hi! Yes. I did. Now I removed it. But the problem is not in frontend, it is in backend in the lists of posts. The posts thumbs is very big.
October 19, 2015 at 3:12 pm #520983Hi!
Please add following code to Functions.php file in Appearance > Editor
function backend_post_thumb() { ?> <style>#the-list img.attachment-widget { width: 36px; height: 36px; }</style> <?php } add_action( 'init', 'backend_post_thumb');
Best regards,
YigitOctober 19, 2015 at 4:47 pm #521039Hi!
Thank you very much! But I changed the code a litlle bit:
add_action( 'init', 'backend_post_thumb');
to
add_action( 'admin_print_styles', 'backend_post_thumb');
October 19, 2015 at 4:49 pm #521042 -
AuthorPosts
- The topic ‘Thumb size of the posts in admin panel’ is closed to new replies.