Support » Theme: Gridbox » Featured image size

  • webmasterusbhand

    (@webmasterusbhand)


    Hi. Great theme, exactly what I was looking for !
    My question is : Is it possible to apply a different CSS style between post image on home page (featured image ?) and image show in a post.
    Actually I’m using a child theme with this code :
    .type-post img { /* .type-post */
    max-width: 100%; /* max-width Adhere to container width. */
    height: 350px; /* auto Make sure images are scaled correctly. */
    object-fit: contain;
    object-position: center center;
    }
    But this style is also applied to image in a post
    Thanks

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

Viewing 1 replies (of 1 total)
  • Theme Author ThemeZee

    (@themezee)

    Hi there,

    Thanks so much for using Gridbox.

    You can use the .entry-content class, which will only target images within the content area:

    .type-post .entry-content img {
    
    }

    Cheers,
    Thomas

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.