Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi @katherine511

    A lot of that looks to be CSS. From a quick change to viewing the compiled CSS you can see it is:

    
    button {
      outline: none;
      height: 40px;
      text-align: center;
      width: 130px;
      border-radius: 40px;
      background: #fff;
      border: 2px solid #1ECD97;
      color: #1ECD97;
      letter-spacing: 1px;
      text-shadow: 0;
      font-size: 12px;
      font-weight: bold;
      cursor: pointer;
      -webkit-transition: all 0.25s ease;
      transition: all 0.25s ease;
    }
    button:hover {
      color: white;
      background: #1ECD97;
    }
    button:active {
      letter-spacing: 2px;
    }
    button:after {
      content: "SUBMIT";
    }
    
    .onclic {
      width: 40px;
      border-color: #bbbbbb;
      border-width: 3px;
      font-size: 0;
      border-left-color: #1ECD97;
      -webkit-animation: rotating 2s 0.25s linear infinite;
              animation: rotating 2s 0.25s linear infinite;
    }
    .onclic:after {
      content: "";
    }
    .onclic:hover {
      color: #1ECD97;
      background: white;
    }
    
    .validate {
      font-size: 13px;
      color: white;
      background: #1ECD97;
    }
    .validate:after {
      font-family: 'FontAwesome';
      content: "\f00c";
    }
    
    @-webkit-keyframes rotating {
      from {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
      }
      to {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
      }
    }
    
    @keyframes rotating {
      from {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
      }
      to {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
      }
    }
    

    **Edit**
    And you would need to make sure you are also adding in the JavaScript accordingly.

    Hope that helps!

    You can add the css and javascript code with a custom css and js plugin. And the HTML should be added where you want to see the button, so I assume in a WordPress page.
    To change the word Submit, find it somewhere in the css code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add a button with code’ is closed to new replies.