Skip to content

02 Site Wide Configuration

Adam Glenn edited this page Aug 22, 2016 · 5 revisions

This theme is fully customizable from within CleanSlate. Tell CleanSlate which patterns you want to use on any given page.

Go to your dashboard, then click Settings, then click the Data tab. The following site-wide variables let you customize your theme.

masthead_color blue, gold, white

This changes the masthead color of your theme.

masthead_title: This is what shows up in your site's wordmark

has_alternate_logo: Set this to 'true' if you have an alternate wordmark

NOTE: If you have a custom wordmark, just upload the wordmark and label it with masthead-logo.

nav: Sets which type of navigation your site will have. For a normal nav, type nav. To activate dropdown menus on your main navigation type in nav_dropdowns.

calendar_feed: Allows you to specify a feed from the WVU Calendar and pull in events using the calendar pattern. This feed will be the default calendar feed whenever you use the calendar2 partial. You can overwrite this feed by defining another feed on a page-by-page basis. Just use the calendar_feed_page page attribute. See Jay Allen to get your own feed. The code will look something like this:

<script type="text/javascript">
    ActiveData.Events(
        "https://calendar.wvu.edu/handlers/query.ashx?id=97c857fee08a4e54978cda2e18491d2e&tenant=&site=academic",
        function (response) {$("#cal").append(response.data);}
    );
</script>

Make sure the ID in the Javascript is #cal.

default_content_01: You can have three patterns that act as default content at the bottom of every page. This is useful if you have a call-to-action you want to repeat on every page. In your site properties, there are three fields e.g. default_content_01, default_content_02, and default_content_03. Enter the name of the pattern you want to show up in each slot.

show_instructions: Each pattern has instructions for use in edit mode. You can toggle this off by setting this value to false.

Clone this wiki locally