Site logo

[Resolved] Will using Imagify tags break GeneratePress?

Home Forums Support [Resolved] Will using Imagify tags break GeneratePress?

Home Forums Support Will using Imagify tags break GeneratePress?

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #2245313
    sevite

    Hello,

    I’m using Imagify for image compression and webp images. It is currently set to use rewrite rules regarding webp, but advise using <picture> tags is preferred and works with CDN, but may break my theme. Do you have any experience to know if <picture> tags will break a GP/GB site?

    “The first option adds rewrite rules to your site’s configuration file (.htaccess) and does not alter your pages code. This does not work with CDN though.
    The second option replaces the tags with <picture> tags. This is the preferred solution but some themes may break, so make sure to verify that everything seems fine.”

    #2245480
    Leo
    Staff
    Customer Support

    Hi there,

    I can’t see how it would be an issue for GP or GB.

    Can you give it a shot and let us know if you run into any issues?

    Thanks 🙂

    #2245489
    sevite

    Thanks. Will do. I also found an experienced GP user and he confirmed he uses <picture> on his sites with no issues.

    #2245495
    Leo
    Staff
    Customer Support

    Glad to hear 🙂

    #2245612
    sevite

    well, update. I saw no difference on first site I tried Imagify <picture> tags on, but also am not sure webp were displayed. So tried on another small site I had a clone for. All looked good, except the image in the main nav got huge. darn.

    Any suggestions? or shall I just ask the dev who made the main to see if she can see anything she can change in the header?

    https://kupidsplay.com/clone/

    Thanks
    Pam

    #2245630
    Fernando
    Customer Support

    Hi Pam,

    If this issue only occurs with the <picture> setting, it would be best to ask Imagify or the dev for assistance.

    if you would like to address this via CSS, here’s a CSS you may try adding in Appearance > Customize > Additional CSS:

    .site-logo picture>img {
        height:60px;
        width:60px;
    }
    .main-nav picture>img{
        height:30px;
        width:30px;
    }

    Hope this helps!

    #2246379
    sevite

    Hi Fernando, Thanks. tried the css. no difference. I’ve handed off to the developer who made the header to see what is ‘different’ about it. Will let you know if we learn anything that could help others

    #2246595
    Fernando
    Customer Support

    The CSS just makes the logo in the menu button smaller. Here it is how it looks like from my end with the CSS added: https://share.getcloudapp.com/4gurxRvx

    Got it! Hope you find a solution!

    #2420755
    Stephane Bergeron

    Hi,

    I’m sorry for reviving an old thread but I’m having the same issue. The Imagify picture tag method breaks the GenerateBlocks image block and, on my Cloudways server, the rewrite rules method does not serve webp for some reason (I’m looking into that separately).

    But what is frustrating is that only the GenerateBlocks image block is affected.

    The native image block works with the picture tag as does the Advanced Image block in Kadence Blocks. I think that’s really something you should try to fix from within GenerateBlocks as we can’t write manual CSS code to dimension all images on a site and the GB image block is by far the best..

    Thanks!

    #2421268
    David
    Staff
    Customer Support

    Hi there,

    it is something we are looking into, and we will address in a future update.

    #2421919
    Stephane Bergeron

    Awesome! Thanks David!

    #2422637
    David
    Staff
    Customer Support

    You’re welcome

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.