Your Time:
Our Time:
← Back to discussions

Use of HTML in 'open text' en 'closed text' fields.

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 6 replies, 3 voices, and was last updated 10 years, 9 months ago by Anonymous.

  • 2015-11-24 at 10:18 pm
    Support Expired
    #11146
    marcbakker84
    Participant
    • Topics: 1
    • Replies: 2
    • Total posts: 3
    • Post count: 2

    Hello,

    First of all i’m very enthusiastic about the BHP plugin! Thanks for the good work!

    I’m working on a website right now and i want to add some HTML in the open and close text. I’ve added this: <span class="sign-line-1">###</span><span class="sign-line-2">###</span>

    I can save it, but when i open it again the text field strip everything from the first ” in the line.
    How can i solve this?

    Many thanks,
    Marc

    2015-11-25 at 10:34 am
    #11149
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    That’s my pleasure!

    And coming to open and closed textfields, please enter only the text in the textfields.

    2015-11-25 at 2:35 pm
    Support Expired
    #11157
    marcbakker84
    Participant
    • Topics: 1
    • Replies: 2
    • Total posts: 3
    • Post count: 2

    But what if i want to style the different parts in the elements? Is it possible to add inline HTML to the text?

    2015-11-26 at 11:09 am
    #11167
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Yes, you can add inline html to the text according to your requirement but if you edit the code in the plugin files, whenever you update the plugin, the changes what you have made will be lost. So, if you want to style the elements, please make the changes in css files by going to that particular class.

    2015-11-29 at 5:34 pm
    Support Expired
    #11207
    marcbakker84
    Participant
    • Topics: 1
    • Replies: 2
    • Total posts: 3
    • Post count: 2

    Sorry, but i think it’s not correct.

    An example.
    Paste this text in the ‘closed text’ field:
    <p>We are closed</p><br><p>at this moment</p>
    And this text in the ‘open text’ field:
    <p>We are open</p><br><p>at this moment</p>
    Set the day of today as closed and check the front end.

    You see both the opening as the closing text. Without HTML in the field everything is working fine.

    2015-11-30 at 2:03 pm
    #11231
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Yes We made it only text based for security measures coz if something is wrong within the elements you / others add then it will be a problem for the layout and everything gets messed. So currently as of now we have only text based option and if you want html based then you can customize that according to your requirements.

    2015-12-18 at 11:34 am
    #11664
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Topic is set to be resolved. If you wish to update this topic please reply here instead of creating another topic.

You must be logged in to reply to this topic.