Can I Add a Book Now Button

Home Forums Calendar Products Events Calendar PRO Can I Add a Book Now Button

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #985743
    Sharon Watt
    Participant

    Can I add a book now button to the top of a single event page like this one:
    http://www.milkwood.net/course/fermentation-workshop-150726/

    #985850
    George
    Participant

    Hey Sharon,

    Yes, you can do this in a number of ways. First, you need to an HTML element like a <div> to your page, and make sure it has an ID attribute. This is what the “link” will link to.

    So, for example, on the website you provided, they added a div tag at the very bottom of their post content, which is right before where the tickets box is generated. Their div looks like this:


    <div id="myAnchor"></div>

    Then, to add the “Book Now” link, just add a <a&gt: tag that links to #myAnchor, like this:


    Book Now!

    And that’s all!

    If you want to be able to write custom CSS so you can style that link to look like a button or something, add a CSS class name to it and then style it with CSS like this:


    Book Now!

    And then, to make it a red button with white text in your CSS for example:


    a.book-now-example {
    display: inline-block;
    color: #fff;
    background: red;
    padding: 10px 15px;
    border-radius: 3px
    }

    Hopefully this gives you a good run-down of all the components that go into adding a button like that on your site.

    Cheers!
    George

    #986063
    Sharon Watt
    Participant

    Thank you!

    #986482
    George
    Participant

    🙂 Cheers!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Can I Add a Book Now Button’ is closed to new replies.