• Resolved baralenk

    (@baralenk)


    the featured image for a post is really big and seems like its because of the block or something. I have tried to find where I can change that and only thing I could find was check the element on the website with my browser. Then I found this:
    `.wp-block-post-featured-image img {
    max-width: 100%; <—
    width: 100%; <—
    height: auto;
    vertical-align: bottom;

    But I cant find it where I can change that in the settings anywhere. So how can I change my post featured image width?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @baralenk,

    Since Bj?rk is a block theme, you can edit the layout of all templates in Appearance → Editor. Go to that page, click the WordPress logo in the top left, click “Templates”, select “Single Post” in the list, and then select the group wrapped around the featured image block (the easiest way is through the list view, accessible through the list icon in the top left).

    When you have that group block selected, click the toggle labeled “Inherit default layout” in the right sidebar. That will make the featured image the same width as the post content on the page. If you prefer a custom pixel value for the width, leave the toggle unclicked and instead enter a width in pixels in the “Content” field directly below it.

    You need to repeat these steps for the “Page” template if you want pages to have the same featured image width.

    — Anders

    Thread Starter baralenk

    (@baralenk)

    oh! that worked perfectly! Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured image on post’ is closed to new replies.