• So this is my website: https://vechtscene.nl/

    And I recently changed the code so that I don’t have to hardcode and upload all images in, rather, they take it from the post’s featured image.

    Only this has added the class: "wp-post-image ngg-image-97"

    wp-post-image comes from:

    the_post_thumbnail('thumbnail');

    ngg-image-97 comes from:

    “nextgen gallery plugin”

    For some reason this makes the thumbnails the wrong size (something like 100×80 instead of 160×160. How can I get rid of the class?

    Alternatively, how can I change the css or wordpress setup so that it shows at 160×160?

    ps. I’m not using any of the other presets. But adding
    set_post_thumbnail_size( 160, 154 ); was unsucessful in changing anything, nor was changing it in settings/media in the admin.

Viewing 1 replies (of 1 total)
  • Thread Starter Dunam

    (@dunam)

    I have achieved some success by making a custom class instead of using the_post_thumbnail, but images are still not resizing to my ideal size 160×154

    (the 160×160 earlier was a typo)

    If you can help me, please let me know!

Viewing 1 replies (of 1 total)
  • The topic ‘Thumbnails are wrong size (how can I get rid of the classes?)’ is closed to new replies.