Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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.
    #519711

    Hi 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,
    Rikard

    #519851

    Yes!

    #520593

    Hi!

    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!
    Ismael

    #520655

    Hi! 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.

    #520983

    Hi!

    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,
    Yigit

    #521039

    Hi!
    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');

    #521042

    Hey!

    Good thinking!
    You are welcome, glad we could help :)

    Best regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Thumb size of the posts in admin panel’ is closed to new replies.