include css in php ( max-height, max-width for post thumbnail )
-
hello everyone.
i am creating my own theme and i am trying to set a max-width and max-height for post thumbnails in functions.php
i found this php tag:
set_post_thumbnail_size(80, 80, false);
but i want to use max measures not fixed ones..
is there any way to include CSS inside that php tag ?
i already have this in my css file :.post-thumbnail, .attachment-post-thumbnail { max-height: 300px; max-width: 540px; }
but since it is a post thumbnail they add html
height="" width=""
any help is kindly appreciated !
^ sam
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘include css in php ( max-height, max-width for post thumbnail )’ is closed to new replies.