Want to add a forum like this one to your store? Install Champ Now

Welcome to Champ's live demo

Did you know that this isn't just a demo?
This is our live pre-sales Q&A and support forum. Take a look around and say "Hello".

Pinned
0

How to create the image header like Champ forum

Mar 11, 2019 - 9:20 PM

https://getchamp.myshopify.com/community/champ/forums/7/topics/5180 Copy
  • A merchant emailed me just now asking about the way we designed our header. It looks different than the default design. I thought I'd share it with everyone on how we did it.

    Here's an image of it:

    Champ_Demo___Support_-_Forum_App_for_Shopify.png

    Here's how we did it:

    First, go read the guide on our website on using customized snippets: https://getchamp.net/guides/customizations/#using-customized-snippets

    These are just specifically named snippets (that you create in your Shopify theme, NOT Champ, with specific names eg. champ-below-header). The application will pick up these files automatically and render it in the forum.

    Because they're Liquid files, all of the usual Liquid syntax works.

    By default, your forum after you've installed the app, will not have that picture that we have.

    We created a Liquid snippet file called champ-below-header in our Shopify theme editor:

    Screenshot 2019-03-11 21.16.32.png

    Next, we used the following code in this snippet:

    <div class="container">
      <div class="row">
        <div class="col">
          <div class="below-header">
            <div class="below-header-wrapper">
            <h2>Welcome to Champ's live demo</h2>
            <p>Did you know that this isn't just a demo?<br>This is our live pre-sales Q&A and support forum. Take a look around and say "Hello".</p>
            </div>
          </div>
        </div>
      </div>
    </div>
    <style type="text/css">
    .below-header {
      background: url(https://cdn.shopify.com/s/files/1/2786/3878/t/1/assets/pic3-p2.png?4509396534301255899);
      background-repeat: no-repeat;
      height: auto;
      width: 100%;
      background-size: cover;
      background-position: 50% 73%;
      color: white;
      position: relative;
      border-bottom-left-radius: 5px;
      border-bottom-right-radius: 5px;
      h2 {
        font-size: 30px;
        font-weight: 100;
      }
      p {
        font-size: 20px;
      }
      h2, p {
        font-weight: 100;
        color: white !important;
        text-align: center;      
      }
      .below-header-wrapper {
        width: 100%;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 10px;
        padding-right: 10px;
        background-color: darken(#4256AC, 20%);
        position: relative;
        top: 0;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
      }
    }
    @media (min-width: 768px) {
      .below-header {
        height: 300px;
        .below-header-wrapper {
          position: absolute;
          border-bottom-left-radius: 0;
          border-bottom-right-radius: 0;
        }
      }
    }
    </style>
    

    Hope that helps

    This post was edited Mar 11, 2019 09:24PM
    0

    Need help? Contact me at support@getchamp.net or here. Brand new! Add your own signature at https://getchamp.myshopify.com/community/champ/preference
  • This https://www.girlsdelhi.in/dwarka-call-girls.html redefines luxury and indulgence. From her graceful presence to our fascinating conversation, every element surpassed my highest expectations.

    0
Quick reply

How to format posts

Champ uses Markdown for formatting text in posts. Certain markup tags (eg. H1) are forbidden to ensure that pages remain semantically compliant. Other tags are automatically sanitized to ensure all content is secure.

  • Emphasis, aka italics, with *asterisks* or _underscores_.
  • Strong emphasis, aka bold, with **asterisks** or __underscores__.
  • Combined emphasis with **asterisks and _underscores_**.
  • Strikethrough uses two tildes. ~~Scratch this.~~
  • Links are added automatically, but can be formatted like so: [My link](https://mylink.com)
For more information, take a look at the Markdown Cheatsheet.