Using Javascript to Modify your Slayte Site

Using Javascript to Modify your Slayte Site

Beyond the basic configurations, you can modify the look and feel of your Slayte site by adding custom JavaScript or CSS under Admin > Custom Code.

Use browser inspection tools (e.g., Google Chrome Inspector or Firefox CSS Inspector) to identify the elements you want to style.

Here is a sample code snippet to apply custom styles:

  1. const cssRules = ` Your CSS Code here `; const theStyle = document.createElement('style'); if ('styleSheet' in theStyle) { (theStyle as any).styleSheet.cssText = cssRules; } else { // This is for modern browsers theStyle.appendChild(document.createTextNode(cssRules)); } document.head.appendChild(theStyle);

For example, to change the navigation panel color:

  1. const cssRules = ` #react-root > div > div.App__container__1694870745.NavigationDrawer__container__2061365725 > div > div.theme__navDrawer__104533360.theme__smPermanent__104533360.NavigationDrawer__navDrawer1__2061365725.navDrawer1 > aside { background-color: #319331; } `; const theStyle = document.createElement('style'); if ('styleSheet' in theStyle) { (theStyle as any).styleSheet.cssText = cssRules; } else { // This is for modern browsers theStyle.appendChild(document.createTextNode(cssRules)); } document.head.appendChild(theStyle);

You can also insert widgets—for instance, a Zendesk support widget—into your Slayte website for immediate assistance during events or programs. For more details on implementing custom code or widgets, contact support@slayte.com.

    • Related Articles

    • Slayte Call Terms and Definitions

      Call: A call is a general term for an invitation to submit content. Content is typically collected during a Submission Phase and later evaluated in a Review Phase. Submission: A submission is the content submitted to a call. For example, in a Call ...
    • Public Site Branding and CSS

      The public site of your conference is accessible to anyone on the internet with the link to your conference. You can enable/disable the public site, and customize the style on the following site of your conference administration. From the desired ...
    • Embedding Slayte Call Forms in Impexium Sites

      Slayte has the ability to integrate itself with Impexium and be embed in Impexium Sites, there’s configuration from both ends involved but very straight forward. Configuration from Slayte First, we need to identify the call form we wish to embed and ...
    • Edit Site/Preview Site

      Select Page Slide toggle to Edit Site This will allow you to make changes to the company site and during the editing while the conference is live you may want/need to hide your site from attendees. To do this, select the HIDE SITE FROM ATTENDEES ...
    • Zoom Integration with Slayte

      Slayte has a generic Zoom integration that lets you add Zoom meetings to sessions. This is always available on each session and you can simply paste the join link and add the meeting ID and passcode. However, Slayte is also a Zoom partner and has the ...