How to target first img in every wordpress post with CSS [closed]
Firstly i would say this is off-topic here as it purely relates to css/js, but let me try to give some pointers. Here you markup is : <article> <header></header> <div> …. <p><img class=”align-center” src=”https://wordpress.stackexchange.com/questions/225091/path/to/img1″></p> …. <p><img class=”align-center” src=”path/to/img2″></p> …. </div> </article> first-of-type means selecting the first child of the selector parent. In the above markup … Read more