Announcement

Collapse
No announcement yet.

Converting to Colossus: Significant Google Search Console Warnings Have Increased

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    So adding this that I found from the Shadows thread to a products 'main_image' sets the width correctly:

    Code:
    width="&mvte:product_display_imagemachine:image_width;" height="&mvte:product_display_imagemachine:image_height;"
    But the height sometimes varies. Is there a way to pull the image height from the generated image instead of using the image machine setting?

    Comment


      #17
      Not directly as only the maximum desired widths and heights are stored in the database. You could try modifying the tag to use inline CSS using a combination of min/max measurements and then maybe a bit of JavaScript to remove those styles once the image is loaded.
      Matt Zimmermann

      Miva Web Developer
      Alchemy Web Development
      https://www.alchemywebdev.com
      Site Development - Maintenance - Consultation

      Miva Certified Developer
      Miva Professional Developer

      https://www.dev4web.net | Twitter

      Comment


        #18
        In playing with this more and researching more I found that having the width & height use the imagemachine dimensions is okay - it helps to set the aspect ratio. I think the problem now is needing to set a min-heights on the surrounding div. The problem is the product images are not all the same height. In a perfect world that would be the case. Any ideas how to accommodate for that?

        Comment


          #19
          You might doing a combination of min/max height where the maximum is whatever your image machine settings are and the minimum is the average height of your generated images.
          Matt Zimmermann

          Miva Web Developer
          Alchemy Web Development
          https://www.alchemywebdev.com
          Site Development - Maintenance - Consultation

          Miva Certified Developer
          Miva Professional Developer

          https://www.dev4web.net | Twitter

          Comment


            #20
            To pile on to this a "bit" more, I have a site that is using the Base ReadyTheme (Bootstrap 3) and it is getting far, far, far better results and seems to be easier to make Google's Core Web Vitals happy. Also I have discovered that Live Chat needs some serious improvements...but that's story for another day.
            Leslie Kirk
            Miva Certified Developer
            Miva Merchant Specialist since 1997
            Previously of Webs Your Way
            (aka Leslie Nord leslienord)

            Email me: [email protected]
            www.lesliekirk.com

            Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

            Comment

            Working...
            X