Forums

[resolved] generation of the br tag with [caption] (7 posts)

  1. ndoto
    Member
    Posted 2 years ago #

    wordpress
    My current setup WP
    - 3.1.2:
    - Version PHP5/MySQL:
    - SF_blueprint-wp:
    -shadowsbox:
    - Local:

    Problem (s) meet (s):
    Hello everyone, I'm new to the forum and new to WordPress.
    Using the placement of photos submitted by the administration interface, I aligned on the left the images and I added a caption to them. The add of the [caption] code generates a tag<br/> which leads images to cascading down. I wish I could remove this tag<br/> in any file, where can i I find the code that generates it?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Ten theme to rule out any theme-specific problems.

  3. ndoto
    Member
    Posted 2 years ago #

    Hello esmi, thanks for the procedure. But it doesn't come from a plugin or from the theme, the <br/>tag is generated by the editor in admin pages. when you add a caption to image the [caption] tag generate a div wich encapsulate the image and a paragraphe with the . it also display a br tag after the div. this one lead the div to cascading down when you want your images to float left.
    I'd like to avoid the editor to generate a br tag when adding a caption to images but i don't know where is the file to do so.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Are you referring to the display in the Visual editor or in the final generated page?

  5. ndoto
    Member
    Posted 2 years ago #

    i am reffering to the display in the final generated page.
    http://ndugusamaki.free.fr/br/
    you can see the result by folowing the link

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    All I can see is a directory index listing at that url.

  7. ndoto
    Member
    Posted 2 years ago #

    Ok esmi thanks for the help. I find a "graphist trick" to solve my problem. i copied the code generated in the final page, i replaced this code in the html editor , supress the <br/>tag generated by the editor, and then all my images and there caption get back in line :)
    the result here .before and after

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.