Add a hyperlink in the tickets description

Home Forums Ticket Products Event Tickets Plus Add a hyperlink in the tickets description

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1118223
    Jake
    Participant

    I’d like to add a more info hyperlink to an events ticket description faq page.

    • This topic was modified 9 years, 11 months ago by Jake.
    • This topic was modified 9 years, 11 months ago by Nico.
    #1118475
    Nico
    Member

    Hi Jake,

    Thanks for reaching out to us on this! I’ll help you here…

    SO first step is to actually input the link html tag in the ticket description field in the back-end. Once that’s in place you’ll need to create a template override of the template that renders the ticket (more on this on the themer’s guide). For example if you are using RSVP tickets, the corresponding template is wp-content/plugins/event-tickets/src/views/tickets/rsvp.php. Once the copy of the template is in place go ahead an edit the line that outputs the ticket description (line 77 in for RSVP) and change esc_html for htmlspecialchars_decode. It should look like this:


    <?php echo htmlspecialchars_decode( $ticket->description ); ?>

    With that change you can display html in the description field!

    Please let me know if you can make it work on your side or you still need help,
    Best,
    Nico

    #1118789
    Jake
    Participant

    Brilliant!

    #1118797
    Nico
    Member

    Boom! Glad to hear 🙂

    I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add a hyperlink in the tickets description’ is closed to new replies.