• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Making Images Responsive

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Making Images Responsive

This topic is: not resolved

Tagged: image responsive

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 5 months ago by Tim Squires.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 19, 2014 at 3:32 pm #134924
    LaunchPad777
    Member

    Hi there,

    This question applies to three different sites I'm working on at the moment.
    One of which is http://www.gpmotorworks.co.za

    However, I'm busy re-designing a html website for a client using Genesis Sample Theme...at the moment the website is password protected until ready for re-launch.

    I want to make all the images responsive. I came across this which was helpful in getting the header image to be responsive:
    http://wpbeaches.com/add-full-width-responsive-header-image/

    But I'm still battling with the images in the individual pages, and I used this site:
    http://wpbeaches.com/make-images-scale-responsive-web-design/

    and this one:
    http://wpbeaches.com/responsively-removing-width-and-height-attributes-in-images-on-wordpress/

    In the second one it talks about changing all the images with a script:

    Removing Existing Inline Styling for Width and Height Attributes on Images
    This can be achieved with some javascript, I couldn’t find a way to do this via a mass mysql method, so here is a great script , put it in the header.php of your theme.

    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript">
    jQuery.noConflict();
    jQuery(document).ready(function($){
     $('img').each(function(){
     $(this).removeAttr('width')
     $(this).removeAttr('height');
     });
    });
    </script>

    I applied this script here Admin panel > Genesis > Theme settings in the header script boxes.

    However, it doesn't make the images resize when you make the browser window smaller.

    Is there another way to make the images responsive globally?

    Best regards

    Greg

    December 31, 2014 at 7:20 am #135740
    Tim Squires
    Member

    I'm not sure, but this tutorial might help you:

    http://thepixelista.com/responsive-genesis-child-theme-logo/


    timsquires.com.au

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble