ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Additional <p> tags in custom field

September 15, 2010 11:16am

Subscribe [4]
  • #1 / Sep 15, 2010 11:16am

    GlobalGraphics

    36 posts

    Hi All!

    My post is a strange one that I cant remedy alone so any help will be greatly received!

    I have a custom field for a <h1> tag this is what my code looks like:

    <h1>{heading_1}</h1>

    and this is what is being output by EE:

    <h1>The Heading Text</h1>

    The fields are Text Inputs and the Default Formatting is set to none.

    It is adding a tag that I really don’t want! It is strange because I have other custom entry fields which are Text Inputs and this problem isn’t happening.

    I am running Build: 20100430 on EE 1.6.9

    Thanks,
    Gareth.

  • #2 / Sep 15, 2010 4:29pm

    blaiseymae

    108 posts

    Go to the custom field with the error and select “none” instead of “xml” or “auto br” from the “Default Text Formatting for This Field” dropdown.

    That should do it 😊

  • #3 / Sep 15, 2010 8:39pm

    Brandon Jones

    5500 posts

    Hi GlobalGraphics,

    If you create a new text input field for your heading does the problem occur there too? Are you using any extensions?

  • #4 / Sep 16, 2010 5:53am

    GlobalGraphics

    36 posts

    Hi Brandon,

    I have added a new custom field exactly as the original

    {heading_1}
    and called it
    {main_heading}

    . This seems to work fine and the problem has gone away!

    Many thanks for your help.
    Gareth.

  • #5 / Sep 16, 2010 4:15pm

    Ingmar

    29245 posts

    Glad to see you’re up and running. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases