• Guys, How I can edit the HTML in order to add image dimensions?

    I am having some CLS issues and WP Rocket is not working properly in this regard.

    I know there are other plugins that do this but I prefer learning how to do it manually.

    I have access to the site Cpanel so…?

    Thoughts?

    • This topic was modified 4 years, 11 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi!

    Have you tried using the block type “CUSTOM HTML” and entering the HTML code for the img tag with the width and height parameters? I was able to do that and it rendered the image correctly.

    Thanks!
    Dan

    Thread Starter RogerM

    (@imnewbie)

    The site is built on the Hello Theme + Elementor…Can I still use the custom HTML widget?

    • This reply was modified 4 years, 11 months ago by RogerM.

    Hi!

    Yes, I reviewed the Elementor and Hello theme and it appears to have a custom HTML block. You could test this out and see if you can achieve your desired results. if not, you may want to post your question directly in the theme’s forum here:

    https://ww.wp.xz.cn/support/theme/hello-elementor/

    Alternatively, you can still edit your post in WordPress without using the “Edit with Elementor” feature. Just select your post and then click “edit”. When the editor comes up, you should have an option to return to the WordPress editor:

    Screen Shot

    Note, you will receive a warning that the changes you made using Elementor might be overwritten. Therefore, I recommend that you make a copy of this page and test your changes first so that you do not lose any work. So tread carefully here, as you can mess up the post’s layout.

    Good luck out there!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Add Image Dimensions’ is closed to new replies.