Turn the Open Cph starter site into your site

You can quickly personalize the Open Cph site by:

Note. This information is also applicable to the Tiny Cph starter site.

Changing the colors

You can change the website's colors, especially the primary brand color, by editing specific variables in the variables.less.

  1. On your website, edit ~/Frontend/Styles/bootstrap/variables.less.
  2. Locate and change one or more of the following variables.
    @gray-base:              #000;
    @gray-darker:            lighten(@gray-base, 13.5%); // #222
    @gray-dark:              lighten(@gray-base, 20%);   // #333
    @gray:                   lighten(@gray-base, 33.5%); // #555
    @gray-light:             lighten(@gray-base, 46.7%); // #777
    @gray-lighter:           lighten(@gray-base, 93.5%); // #eee
    @brand-primary:         #4189ff;
    @brand-success:         #5cb85c;
    @brand-info:            #5bc0de;
    @brand-warning:         #f0ad4e;
    @brand-danger:          #d9534f;

    @body-bg:               #f0efed; 					//** Background color for `<body>`.
    @text-color:            @gray-dark; 				//** Global text color on `<body>`.
    @link-color:            @brand-primary;				//** Global textual link color.
    @link-hover-color:      darken(@link-color, 15%);	//** Link hover color set via `darken()` function.
    @link-hover-decoration: underline;	 				//** Link hover decoration.
  3. Save the variables.less file.
  4. Refresh the website (F5).

You can change the header images displayed in a slide show on the front page of the website or replace them with your own static image.

To replace the header images:

  1. From the "Media" perspective, create a folder and upload your image into it.
  2. From the "Layout" perspective, expand "Page Template Features".
  3. Select and edit the "Front Page Content Start" template feature.
  4. Edit the "Composite.Media.BootstrapCarousel" function.
  5. In the "Images folder" parameter, select the folder from Step 1.
  6. Save the function and then save the template feature.

Here, you can also delete the function altogether and insert a "static" image instead (Insert / Image).

Inserting content spots

To add some quick information to pages, you can create and make use of "content spots" like those on the front page of the Open Cph starter site.

To create a content spot:

  1. From the "Content" perspective, expand "Website Items" / "Content Spots".
  2. On the toolbar, click "Add Data".
  3. On the "Settings" tab, type in the title of the content spot in the "Title" field.
  4. On the "Spot" tab, add and format content of the spot.
  5. Save and publish the spot.

Content spots are represented by a CMS Function "Content.ShowContentSpots". You can select one or more spots to show on a page with a single function.

To insert a content spot on a page:

  1. From the "Content" perspective, edit a page.
  2. Switch to a specific content placeholder if necessary. Normally, content spots appear in the "Aside column".
  3. Insert > Function > All Functions > Content > ShowContentSpots.
  4. In the "Content Spots" parameter, click "Edit Selections", select content spots you want to appear on the page.
  5. Use the up and down arrows to arrange the order of the content spots.
  6. Click OK to close the selection window and the click OK to save the function.
  7. Save and publish the page.

The footer on each page of the Open Cph starter site contains some placeholder content.

You can replace it with your own content in the "Page Footer" template feature:

  1. From the "Layout" perspective, expand "Page Template Features".
  2. Select and edit the "Page Footer" template feature.
  3. Replace the default content with, or add, your own content.
  4. Save this template feature.