Skip to main content

How do I customize my embedded contact form? - Knowledgebase / Deskpro Legacy - Deskpro Support

WARNING: You're browsing documentation for an older version of Deskpro. For the most up-to-date version, see: How do I customize my embedded Contact Form?

How do I customize my embedded contact form?

Authors list

Just like every other aspect of Deskpro, the embedded contact form is powered by the customisable CSS stylesheet and template system.

 

Changing the template

Go to Admin > User Interface > Portal. Expand the "NewTicket" group and edit the "new-ticket-iframe.html" template.

 

Changing the style

Go to Admin > User Interface > Portal and in the left sidebar click on "Edit Custom CSS" under the CSS tab.

Here you can add CSS rules to change the look of the new ticket form. The form resides inside of an element with the class "dp-simple-iframe" which you can use to scope rules to only the embedded form. For example, here's some CSS that you might use for a dark-themed website with black backgrounds and white text:

 

.dp-simple-iframe #dp, .dp-simple-iframe #dp label {
    color: #fff;
}

.dp-simple-iframe #dp input, .dp-simple-iframe #dp textarea {
    color: #fff;
    border: 1px solid #fff;
    background: #000;
}

.dp-simple-iframe #dp input:focus, .dp-simple-iframe #dp textarea:focus {
    box-shadow: none;
}

.dp-simple-iframe #dp .dp-hidden-file-upload .link {
    color: #fff;
}

.dp-simple-iframe #dp .dp-attach-limits {
    color: #eee;
}
Helpful Unhelpful

14 of 23 people found this page helpful