Skip to main content

Custom CSS

Our platform was born with high customizability and branding in mind. Custom CSS can make your event website or app truly unique and allow your brand to shine through. "What is CSS?" I hear you ask... From Wikipedia

Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML. CSS is a cornerstone technology of the World Wide Web.

Leaning on our Design Team, or having some knowledge of CSS and jumping in yourself, you’ll be able to offer a truly unique and visually appealing event app design that will elevate the value of your event to your guests.

Handy Snippets to Get Started

Questions or Want Something Added?

Tap here to send a request for a new snippet!

Every CrowdComms app includes some Custom CSS added by our design team - and for common requests, we have a selection of CSS Snippets that can be added to your project to achieve your goals. 

Things we can use CSS snippets for:

Removing My Schedule

Hiding extra features to keep your app simple is one of the best uses of CSS. Here's a snippet that removes the ability for users to add sessions to their own individual "schedule". This is useful when you're using our "Managed Schedules" feature to show a unique 

Note: this snippet removes "My Schedule" from every agenda within your app. If you need it removed from just a single specific agenda, ask the team for help!

/*---------- Hide My Schedule ----------*/

.cc-schedule-all,
ion-button.session-livestream-video__action:nth-child(3),
.agenda-card__header-ticket { 
    display:none!important;
}

@media (max-width: 1280px) {
    cc-agenda-module-header div.view-selection { 
        display:none!important;
    }
}

Changing Stock Wording

Example: Changing the stock wording on an activity feed. Instead of saying "What's on your mind?", this changes the text to say "Selfie Challenge!". 

/*Change Placeholder Text on Activity Feed*/
cc-activity-feed-submit-post > ion-card > button > div.top-area > div {
    visibility:hidden;
    font-size:0.01px;
}
cc-activity-feed-submit-post > ion-card > button > div.top-area > div:before {
    visibility:visible!important;
    font-size:14px;
    content:"Selfie Challenge!";
}
Before

afbefore.png

After

afafter.png

Change wording for 'meet an expert'

/*---------- Change the Speak to an Expert Text ----------*/

.cc-company-page-xxxxx cc-company-detail-section[header="COMPANIES_COMPANY_SPEAK_EXPERT"] h1 {
font-size:0px;
}

.cc-company-page-xxxxx cc-company-detail-section[header="COMPANIES_COMPANY_SPEAK_EXPERT"] h1:before {
font-size:24px;
content:'Welsh Stroke Conference - Hall of Fame';
}

Setting Custom Fonts

There are different ways to set custom fonts within the CrowdComms platform. Using Google fonts, you can select a font and use the @import CSS snippet to import it. Then you can use the "Set Font" snippet to set the font that way. Below is an exmple:

/*---------- Font Import ----------*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');

/*---------- Set Font ----------*/

html, body, p, textarea, input, span:not(.vjs-icon-placeholder):not([class*="material-icons"]) {
    font-family: 'Montserrat', sans-serif!important;
    --ion-font-family: 'Montserrat', sans-serif!important;
}

/*---------- Bold Headings ----------*/

h1, h2, h3, ion-card-title, ion-card-title span, span.session-title {
    font-weight:700!important;
}

Alternatively if you have the font files yourself, you can upload font files to the CC Dashboard and use Custom CSS to set the fonts as the below example shows. To upload fonts, head to the Settings > Branding > Fonts area, and ensure the filenames of your fonts are consistent. We suggest using the following formats of fonts for maximum compatibility:

  • ttf 
  • woff
  • woff2 
/*--------- Custom Font Import ----------*/

@font-face {
  font-family: "FONTFAMILY";
  font-weight:FONTWEIGHT;
  src: url("https://media.crowdcomms.com/media/apps/SHORTCODE/fonts/FONTFILE.ttf") format("truetype"), /* Safari, Android, iOS */
    url("https://media.crowdcomms.com/media/apps/SHORTCODE/fonts/FONTFILE.woff") format("woff"), /* Modern Browsers */
    url("https://media.crowdcomms.com/media/apps/SHORTCODE/fonts/FONTFILE.woff2") format("woff2"); /* Modern Browsers */
}

html, body, p, textarea, input, span:not(.vjs-icon-placeholder) {
    font-family: "FONTFAMILY", sans-serif !important;
    --ion-font-family: 'FONTFAMILY', sans-!important;
}

Replace "FONTFAMILY", "FONTWEIGHT", "FONTNAME", "SHORTCODE" and "FONTFILE" in the above snippet before pressing save.

Adding a Note at the top of Pages

An example here is for an Info Pages module - used as a menu.

/*---------- Add Note to Top of Info Page ----------*/
.cc-module-XXXXX cc-info-page-list ion-list:before {
    content:"Search by Name, Job Title or Company:";
    display:block;
    text-align:center;
    margin-bottom:16px;
    font-weight:700;
    color:white;
}

Setting up Heading 6 to be a Button

/*---------- H6 Button ----------*/
h6 a {
    padding:10px;
    text-align:center;
    margin-block-start:0px;
    margin-block-end:0px;
	border-radius:4px;
	font-size:1.1em;
	text-decoration:none!important;
	text-transform:uppercase;
    background-color: var(--ion-color-accent)!important;
    color: var(--ion-color-accent-contrast)!important;
    cursor:pointer;
	transition:0.4s;
}
h6 a:hover{
    background-color: var(--ion-color-accent-contrast)!important;
    color: var(--ion-color-accent)!important;
}

Setting up Scrollbar Design

/*--------- Scrollbar ----------*/
	/* width */
    ::-webkit-scrollbar {
      width: 6px;
      transition:0.4s;
    }
    /* Track */
    ::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.2); 
    }
    /* Handle */
    ::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.4); 
    }
    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
      background: rgba(255,255,255,0.6); 
    }

Text Editor Image Sizing

By default, the app ensures that any image added into the WYSIWYG text editor are full width. Sometimes it's nice to have the images at their real size, especially if you're adding small images.

The problem here is that we can only have one default. This snippet changes the default so images are their regular size, rather than being forced to be full width!

/*--------- Info Page Image Auto Sizing ----------*/
.wysiwyg-content img {
    width:auto!important;
}
/*---------- Hide Version Footer ----------*/
.version-footer {
    display:none;
}
Before and After

before.pngafter.png

Hide the Picture in Picture Button

/* Hide PIP Buttons  */
cc-page.cc-session-page-XXXXXX cc-agenda-session-livestream-video button.vjs-picture-in-picture-control,
cc-page.cc-session-page-XXXXXX cc-pip-button
{display:none;}

Make Something Not Clickable

In the below example, a session with is XXXX is made no longer clickable. 

/* Make Something Not Clickable */
ion-item.cc-schedule-list-item-XXXX {
  pointer-events: none;
}

Hide Banner Ads from Left Sidebar

The below snippet hides the CC Banner Ads from just the left sidebar, so the ads are only visible in the main app page area.

/* Hide Banner Ads from Left Sidebar */
cc-sidebar-left-list cc-banner-ad {
  display:none!important;
}

Edit Message on Login Screen After Failed Login Attempt

Usually when an email address isn't allowed access to a platform, there is a generic message displayed to the user informing them that they are not authorised. If you'd like to change that message to a custom one, use the below snippet:

/* Customise Login Page Failed Attempt Text */
cc-login-form > ion-card > ion-card-content > form > div.login-form__access-denied-text {
    color:var(--ion-color-danger)!important;
    font-size:0.1px!important;
}
cc-login-form > ion-card > ion-card-content > form > div.login-form__access-denied-text:before {
    font-size:16px!important;
    line-height:2em!important;
    width:100%!important;
    color:white!important;
    background:var(--ion-color-danger);
    word-wrap:break-word;
    padding-top:12px;
    padding-bottom:12px;
    content:"Custom Message Here";
}

Add a Message to Login Screen

Want to add a little note to the login screen that's always visible? This is the snippet for you.

/* Add a Message to Login Screen */
cc-login-form form:before {
    content:"Add your custom message here!";
    white-space:pre-wrap;
    margin-bottom:16px;
    text-align:center;
    width:100%;
    display:block;
}

Allow Previously Sized Company Logos

Used the platform for a while and found the new company logo size change annoying? There's a video on our Video Guides area, plus a handy CSS Snippet below which you can copy / paste to adjust the styling on the Company Profile page.

/*Adjust size of new company logo if old sized company logos are used*/
.company-branding img.company-branding__logo {
    border-radius:0px!important;
    background:none!important;
    border:none!important;
    width:240px!important;
}

Improve Alert Popup Styling

The "popup" platform alerts appear styled quite differently to the email alert popups. The below CSS helps ensure the styling is more consistent between the two. 

/*Fix Alert Styling*/
cc-alert-list-item div.wysiwyg-content {font-size:14px;}
cc-alert-list-item div.wysiwyg-content ul {margin-block: 0px;}
cc-alert-list-item > ion-item > div > ion-label > span p,
cc-alert-list-item .wysiwyg-content p,
cc-alert-list-item .wysiwyg-content ul {margin-bottom:16px!important;}

Got a Bespoke Project? Talk to Us!

Our design team will work with you to ensure that the overall design of your app supports your event goals - and gives your attendees the unique experience they're after. We've been building a custom event platforms, apps and websites for a long time and our design team loves getting their hands dirty! 

Get started with a CSS tutorial - or get in contact with us today to find out how we can help bring your brand to life with a well designed virtual platform.