Exclude Images from Indentation

  • Author
    Posts
  • #3493
    definitio

    I would like to use the paragraph indent on my posts, but this also affects images embedded in the content. Is there any way to exclude images from the application of the indentation rule?

    #3497
    Zed
    Cryout Creations mastermind

    Not quite.

    Wordpress’ rich editor usually encapsulates <img> tags inside <p> tags (which have the indentation applied to them)


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #3511
    definitio

    Didn’t seem likely really but I thought I’d ask…

    The indentation is a great feature, particularly for long text; distinguishing the paragraphs makes reading easier.

    Thank you

    #3530
    Zed
    Cryout Creations mastermind

    What you could do is view your pages/posts with the text editor and make sure all <img> tags which you do not want indented are outside the <p> tags.

    But you need to check if switching back to the visual editor doesn’t undo this and wrap images in paragraphs again – making you have to do this check every time you edit the text.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Exclude Images from Indentation’ is closed to new replies.