Resizing Custom Field Images
-
Hey everyone.
I was hoping someone might be able to point me in the right direction,
I have set up a custom field for “logo image”, so the client can update this whenever they like.
Now i’m up to media queries, i cannot figure out how to resize the custom field image.
It is placed in the php as:
<div class="section1logo"> <img src="<?php the_field('p1logoimage'); ?>" /> </div>I have tried a heap of css to affect the image, to no avail, including:
.p1logoimage { background-size:400px auto; } .section1logo { background-size:400px auto; }Will trade good vibes for suggestions/advice.
Thanks!
-
Hi there,
Seems like you have a self-hosted blog, while this support forum is specifically for blogs hosted at WordPress.com where they don’t have access to source / PHP files.
Your question would be answered in the WordPress.org community support forums, which deal with self-hosted installations.
- The topic ‘Resizing Custom Field Images’ is closed to new replies.