• I switched to Twenty Twenty-Two and on my previous theme it was used img class=”alignright size-full wp-image-1″ tags but it is not working (ignores alighnment in post block) and classic align=”right” is showing correct alignment. As I understand I have to add something to CSS to restore alignments of pictures in posts for previous years?

    • This topic was modified 1 year, 9 months ago by pusstoy.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @pusstoy

    The Twenty Twenty-Two theme has a new theme structure, it is a block-based theme. The classes that were on the previous theme might be different on this one.

    For example, on the Twenty Twenty-One theme if you left align an image the class will be figure.alignleft but on the Twenty Twenty-Two theme, it would be figure.wp-block-image.alignleft . However, switching between these two themes will carry over these alignments automatically.

    What is the name of the Theme you are moving your site from?

    Thread Starter pusstoy

    (@pusstoy)

    Hello @thelmachido

    Thank you for you response!
    So to make it compatible in 22 I have to change something in classes files (have no idea where it is:))
    I switched from i-max (By?templatesnext team). Reason I switched is issues with broken elements in previous theme.

    Let me also note that I still use classic editor (my bad, still miss some elements in oldschool text editor and understand that it is time to switch to Gutenberg)

    Hi @pusstoy

    So to make it compatible in 22 I have to change something in classes files (have no idea where it is:))
    I switched from?i-max?(By?templatesnext team).?

    I’m not too familiar with that theme and how its developed, I would suggest reaching out to the developers and asking them to take a look concerning this.

    Let me also note that I still use classic editor (my bad, still miss some elements in oldschool text editor and understand that it is time to switch to Gutenberg)

    I see, you can switch to Classic Editor by activating the Class Editor plugin on your site. Maybe that will have to smooth things over.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image align tags legacy’ is closed to new replies.