Custom media queries and images
-
Hi,
To select the image sizes that I want to use in my templates and to specify my own media queries, if which file do I insert the code:
<?php
$posts = get_posts(array(
‘post_type’ => ‘portfolio’,
‘rwp_settings’ => array(
‘sizes’ => array(‘thumbnail’, ‘medium’, ‘large’),
‘media_queries’ => array(
‘medium’ => ‘min-width: 500px’,
‘large’ => ‘min-width: 1024px’
)
)
));
?>Thanks
Claude
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom media queries and images’ is closed to new replies.