Using Javascript to Modify your Slayte Site

Using Javascript to Modify your Slayte Site

It is possible to further modify the styling of your Slayte website beyond the basic configurations available. You can achieve this by entering JavaScript and CSS under Admin > Custom Code.

Custom CSS allows you to change the look and feel of various components within Slayte. To apply custom styles, you will need to identify the elements you want to customize through the web browser inspector. You can read how to utilize the inspector in the following Help Center Articles:

Here is a base code snippet to adjust the styling:

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 instance, to change the navigation panel color, you can use:

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);

Additionally, you can insert widgets into the website, such as Zendesk, to provide support during events or programs. For further details, feel free to reach out to support@slayte.com.

    • Related Articles

    • Roles in Slayte

      Super Admin: Super admins have the highest permissions within the Slayte app. They have the ability to grant other users Administrator permissions, manage the Subscription Plan, create Calls, Events, Competitions, Grant Applications and much more. ...
    • Slayte Terms and Definitions

      Call: A call is a generic term for an invitation to submit content. Usually content is collected in a Submission Phase and later reviewed in a Review Phase. Submission: A Submission is content submitted to a Call. In a Call for Papers for example a ...
    • 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 ...