Is it possible to have two buttons instead of the default one on the “Slider”? 

Asked on October 13, 2015 in Customization.

The default setting currently only has one. Thank you!

RedCoat Layers User
Reply
  • Possible Answers to Your Question:

  • 1 Answer(s)
    Answered on October 14, 2015.

    Hi there,

    You can add buttons in the content area of the column via the Code view rather than use the default CTA button option.

    This guide covers how buttons are created and styled in Layers:

    Layers Framework: Buttons

    If you check out our main Support page you can see how I did this in the second section.

    I started by typing the text into the rich text field in the widget “Ask a Question or See How it Works”
    Then I used the link option in the toolbar to link the two phrases.
    Then I clicked the code view and added the button class to both links and wrapped “or” in a span so I could style it nicely

    <a class="button" href="/forums/" rel="nofollow">Ask a Question</a><span class="or">&nbsp; &nbsp;&nbsp;<strong>OR &nbsp;&nbsp;</strong>&nbsp;</span><a href="#layers-widget-column-29" class="button">See How it Works</a>
    
    

    Now in the Advanced option of the widget Design bar, I added the special CSS for my “or” class:

    
    .or {
    
    margin-top: 25px;
    
    display: inline-block;
    
    vertical-align: middle;
    
    }
    
    

    What is a code view? How do I access it?

    on January 14, 2016.
    Reply