• Resolved SeanAUS120

    (@seanaus120)


    Is there a way to get the Nelio featured images to crop from the top, rather than from the center which is the WordPress default?

Viewing 1 replies (of 1 total)
  • Plugin Author David Aguilera

    (@davilera)

    Hi!

    You can try this and let me know if it’s what you want (if it is, we’ll tweak the next version of the plugin so that you can keep using this approach). In public/class-nelio-content-external-featured-image-public.php line 338 you’ll see the following return statement:

    return "style=${quote}background:url( $image_url ) no-repeat center center;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size: cover;${quote}";
    

    Well, right after background-size: cover; add background-position: 50% 0%;. This will tell your browser to center the image horizontally, but align it to the top (which I believe is what you want).

    All the best,
    David

Viewing 1 replies (of 1 total)
  • The topic ‘How can I get the featured images to crop from the top?’ is closed to new replies.