Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleExample Markup for CO Custom Theme
<!-- example markup for your header field -->
<h1>Custom Site Title</h1>
<div class="customElement">custom element</div>
<div class="customImage"><img src="https://upload.wikimedia.org/wikipedia/commons/1/16/NPS_map_symbols_spring.png"/></div>


<!-- example markup for your footer field -->
Custom Footer 
<!-- (Note that markup in the header and footer 
     is optional and depends only on your needs.) -->


<!-- some quick and dirty example styles for the CSS field -->
body {
  padding-bottom: 100px; /* offset custom fixed footer */
}
#customHeader,
#customHeader .contentWidth {
  position: relative;
}
#customHeader {
  padding: 1.5em;
  color: #fff;
  background: linear-gradient(black,green);
}
#customHeader h1 {
  font-weight: 700;
  font-size: 3em;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  margin-top: 6px;
}
#customHeader .customElement {
  position: absolute;
  right: 10px;
  bottom: -1em;
}
#customHeader .customImage img {
  position: absolute;
  right: 0;
  top: -1em;
  width: 120px;
  height: auto;
}                                                       
#customFooter {
  bottom: 0;
  color: #fff;
  font-size: 1.4em;
  margin-top: 2em;
  padding: 1em 0 1.5em;
  position: fixed;
  text-align: center;
  width: 100%;
  background: linear-gradient(green,#222);
}

...