Coder Social home page Coder Social logo

Comments (5)

chrisscott avatar chrisscott commented on July 18, 2024

This shouldn't be happening... MPT's thumbnail output uses a similar method as core's _post_thumbnail_html() method. Unless you have added an image size that matches "{$this->post_type}-{$this->id}-thumbnail" where {$this->post_type} is the post type the MPT is registered for and {$this->id} is the ID you used when registering the MPT, then it should use an image width of 266px and be scaled vertically appropriately.

from multi-post-thumbnails.

Oslaf avatar Oslaf commented on July 18, 2024

Hm, I don't think I've got such overlap going on, though my MPT image is registered to more than one (actually, an array of 3) post types, in case that's somehow relevant.

I've confirmed the displayed image is indeed 266px wide (as set in the attributes of the img tag, and matching the equivalent code in WordPress' built-in featured image box above MPT's), but it's not affected by the #postimagediv .inside img {
max-width: 100%;
height: auto;
}
rule that would scale it back to the roughly 254px of the container box sans padding (preventing the image from overflowing), since it doesn't match MPT's [post type][dash][registered id] generated id for the same DIV.

from multi-post-thumbnails.

chrisscott avatar chrisscott commented on July 18, 2024

This has been fixed in 1.6.4. Thanks for the suggestion and followup. I just pushed this to .org so it should be available there shortly.

from multi-post-thumbnails.

Justin-Marks avatar Justin-Marks commented on July 18, 2024

Can you change this from width: 100% to max-width: 100% instead? Because this is making small images huge and blurry.

from multi-post-thumbnails.

chrisscott avatar chrisscott commented on July 18, 2024

Updated in 1.6.5. Pushing to .org shortly.

from multi-post-thumbnails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.