Dealership & Barn reservations
24.4.3 AM
Buttons with (a href=”url” data-tock-business=”businessname” data-tock-reserve=true):
<a href="https://www.exploretock.com/drakes-brewing-dealership-oakland" data-tock-business="drakes-brewing-dealership-oakland" data-tock-reserve=true><button class="tock-button">Dealership</button></a>
doesn’t work
<a href="https://www.exploretock.com/drakesbarn" data-tock-business="drakesbarn" data-tock-reserve=true><button class="tock-button">The Barn</button></a>
works well
To have two separate location widgets, you can not also use the integrated WordPress widget feature and will have to remove it to only use the provided HTML code.
For the HEAD code:
(script code below)
<script>
!function(t,o,c,k){if(!t.tock){var e=t.tock=function(){e.callMethod? e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e), e.push=e,e.loaded=!0,e.version='1.0',e.queue=[];var f=o.createElement(c);f.async=!0, f.src=k;var g=o.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g)}}( window,document,'script','https://www.exploretock.com/tock.js');
tock('init', 'drakes-brewing-dealership-oakland');
tock('init', 'drakesbarn');
</script>
!function(t,o,c,k){if(!t.tock){var e=t.tock=function(){e.callMethod? e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e), e.push=e,e.loaded=!0,e.version=’1.0′,e.queue=[];var f=o.createElement(c);f.async=!0, f.src=k;var g=o.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g)}}( window,document,’script’,’https://www.exploretock.com/tock.js’);
tock(‘init’, ‘drakes-brewing-dealership-oakland’);
tock(‘init’, ‘drakesbarn’);
(script code ends)
Buttons with (a href=”url” data-tock-business=”businessname” data-tock-reserve=true):
<a href="https://www.exploretock.com/drakes-brewing-dealership-oakland" data-tock-business="drakes-brewing-dealership-oakland" data-tock-reserve=true><button class="tock-button">Dealership</button></a>
doesn’t work
<a href="https://www.exploretock.com/drakesbarn" data-tock-business="drakesbarn" data-tock-reserve=true><button class="tock-button">The Barn</button></a>
works
You will need to place the following lines of code in their respective locations of the BODY to display where you would like on the website.
BODY code:
<a href="https://www.exploretock.com/drakes-brewing-dealership-oakland" data-tock-business="drakes-brewing-dealership-oakland" data-tock-reserve=true>Dealership</a>
doesn’t work
Dealership
<a href="https://www.exploretock.com/drakesbarn" data-tock-business="drakesbarn" data-tock-reserve=true>The Barn</a>
works
The Barn
To have two separate location widgets, you can not also use the integrated WordPress widget feature and will have to remove it to only use the provided HTML code.
For the HEAD code:
(html code below)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tock Button</title>
<style>
/* Remove default margin and padding */
body, html {
margin: 0;
padding: 0;
}
/* Apply styles to the button */
.tock-button {
background-color: #3E6AEF; /* You can customize the background color here */
border: none;
color: white;
padding: 10px 20px; /* Adjust padding as needed */
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
cursor: pointer;
border-radius: 50px; /* You can adjust the border-radius to change the shape */
}
</style>
</head>
<body>
<!-- Tock Button wrapped inside an anchor tag -->
<a href="https://www.exploretock.com/drakesbarn" data-tock-business="drakesbarn" data-tock-reserve=true><button class="tock-button">Book Now</button></a> <!-- button works -->
</body>
</html>
/* Remove default margin and padding */
body, html {
margin: 0;
padding: 0;
}
/* Apply styles to the button */
.tock-button {
background-color: #3E6AEF; /* You can customize the background color here */
border: none;
color: white;
padding: 10px 20px; /* Adjust padding as needed */
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
cursor: pointer;
border-radius: 50px; /* You can adjust the border-radius to change the shape */
}
(Tock Button wrapped inside an anchor tag)
(html code ends)
(script code below)
<script>
!function(t,o,c,k){if(!t.tock){var e=t.tock=function(){e.callMethod? e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e), e.push=e,e.loaded=!0,e.version='1.0',e.queue=[];var f=o.createElement(c);f.async=!0, f.src=k;var g=o.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g)}}( window,document,'script','https://www.exploretock.com/tock.js');
tock('init', 'drakes-brewing-dealership-oakland');
tock('init', 'drakesbarn');
</script>
!function(t,o,c,k){if(!t.tock){var e=t.tock=function(){e.callMethod? e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e), e.push=e,e.loaded=!0,e.version=’1.0′,e.queue=[];var f=o.createElement(c);f.async=!0, f.src=k;var g=o.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g)}}( window,document,’script’,’https://www.exploretock.com/tock.js’);
tock(‘init’, ‘drakes-brewing-dealership-oakland’);
tock(‘init’, ‘drakesbarn’);
(script code ends)
You will need to place the following lines of code in their respective locations of the BODY to display where you would like on the website.
BODY code:
<a href="https://www.exploretock.com/drakes-brewing-dealership-oakland" data-tock-business="drakes-brewing-dealership-oakland" data-tock-reserve=true>Dealership</a>
doesn’t work
Dealership
<a href="https://www.exploretock.com/drakesbarn" data-tock-business="drakesbarn" data-tock-reserve=true>The Barn</a>
works
The Barn
(html code below)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tock Button</title>
<style>
.tock-button {
background-color: #3E6AEF; /* You can customize the background color here */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px; /* You can adjust the border-radius to change the shape */
}
</style>
</head>
<body>
<!-- Tock Button wrapped inside an anchor tag -->
<a href="https://www.exploretock.com/drakes-brewing-dealership-oakland" data-tock-business="drakes-brewing-dealership-oakland" data-tock-reserve=true><button class="tock-button">Book Now</button></a>
<!-- button does not work -->
</body>
</html>
.tock-button {
background-color: #3E6AEF; /* You can customize the background color here */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px; /* You can adjust the border-radius to change the shape */
}
(html code ends)
(html code below)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tock Button</title>
<style>
.tock-button {
background-color: #3E6AEF; /* You can customize the background color here */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px; /* You can adjust the border-radius to change the shape */
}
</style>
</head>
<body>
<!-- Tock Button wrapped inside an anchor tag -->
<a href="https://www.exploretock.com/drakesbarn" data-tock-business="drakesbarn" data-tock-reserve=true><button class="tock-button">Book Now</button></a>
<!-- button works -->
</body>
</html>
.tock-button {
background-color: #3E6AEF; /* You can customize the background color here */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px; /* You can adjust the border-radius to change the shape */
}
(html code ends)
Revised 24.4.3 3:10PM
After inspecting your coding we see that the current HEAD code is missing the ‘init’ statement for the Dealership location which is why that button is not working. However, further down in the BODY of also have another copy of the HEAD code that is correct. Moving this line up to the HEAD section will also have the button functioning properly. Original Head code was <script>
!function(t,o,c,k){if(!t.tock){var e=t.tock=function(){e.callMethod? e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e), e.push=e,e.loaded=!0,e.version='1.0',e.queue=[];var f=o.createElement(c);f.async=!0, f.src=k;var g=o.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g)}}( window,document,'script','https://www.exploretock.com/tock.js');
tock('init', 'drakes-brewing-dealership-oakland');
tock('init', 'drakesbarn');
</script>
(updated html code below)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tock Button</title>
<style>
/* Remove default margin and padding */
body, html {
margin: 0;
padding: 0;
}
/* Apply styles to the button */
.tock-button {
background-color: #3E6AEF; /* You can customize the background color here */
border: none;
color: white;
padding: 10px 20px; /* Adjust padding as needed */
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
cursor: pointer;
border-radius: 50px; /* You can adjust the border-radius to change the shape */
}
</style>
<script>
!function(t,o,c,k){if(!t.tock){var e=t.tock=function(){e.callMethod? e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e), e.push=e,e.loaded=!0,e.version='1.0',e.queue=[];var f=o.createElement(c);f.async=!0, f.src=k;var g=o.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g)}}( window,document,'script','https://www.exploretock.com/tock.js');
// Initialize Tock for "drakes-brewing-dealership-oakland"
tock('init', 'drakes-brewing-dealership-oakland');
// Initialize Tock for "drakesbarn"
tock('init', 'drakesbarn');
</script>
</head>
<body>
<!-- Tock Button wrapped inside an anchor tag -->
<a href="https://www.exploretock.com/drakesbarn" data-tock-business="drakesbarn" data-tock-reserve=true><button class="tock-button">Book Now</button></a>
<!-- Button works -->
<a href="https://www.exploretock.com/drakes-brewing-dealership-oakland" data-tock-business="drakes-brewing-dealership-oakland" data-tock-reserve=true><button class="tock-button">Book Now</button></a>
<!-- Button doesn't work -->
</body>
</html>
/* Remove default margin and padding */
body, html {
margin: 0;
padding: 0;
}
/* Apply styles to the button */
.tock-button {
background-color: #3E6AEF; /* You can customize the background color here */
border: none;
color: white;
padding: 10px 20px; /* Adjust padding as needed */
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
cursor: pointer;
border-radius: 50px; /* You can adjust the border-radius to change the shape */
}
!function(t,o,c,k){if(!t.tock){var e=t.tock=function(){e.callMethod? e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e), e.push=e,e.loaded=!0,e.version=’1.0′,e.queue=[];var f=o.createElement(c);f.async=!0, f.src=k;var g=o.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g)}}( window,document,’script’,’https://www.exploretock.com/tock.js’);
// Initialize Tock for “drakes-brewing-dealership-oakland”
tock(‘init’, ‘drakes-brewing-dealership-oakland’);
// Initialize Tock for “drakesbarn”
tock(‘init’, ‘drakesbarn’);
(html code ends)
Revised 24.4.3 3:30PM
(html code below)
<!DOCTYPE html>
<html lang="en">
<head>
<script>
!function(t,o,c,k){if(!t.tock){var e=t.tock=function(){e.callMethod? e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e), e.push=e,e.loaded=!0,e.version='1.0',e.queue=[];var f=o.createElement(c);f.async=!0, f.src=k;var g=o.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g)}}( window,document,'script','https://www.exploretock.com/tock.js');
tock('init', 'drakes-brewing-dealership-oakland');
tock('init', 'drakesbarn');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tock Button</title>
<style>
.tock-button {
background-color: #3E6AEF; /* You can customize the background color here */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px; /* You can adjust the border-radius to change the shape */
}
</style>
</head>
<body>
<!-- Tock Button wrapped inside an anchor tag -->
<a href="https://www.exploretock.com/drakes-brewing-dealership-oakland" data-tock-business="drakes-brewing-dealership-oakland" data-tock-reserve=true><button class="tock-button">The Barn</button></a>
<a href="https://www.exploretock.com/drakes-brewing-dealership-oakland" data-tock-business="drakes-brewing-dealership-oakland" data-tock-reserve=true><button class="tock-button">Dealership</button></a>
</body>
</html>
!function(t,o,c,k){if(!t.tock){var e=t.tock=function(){e.callMethod? e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e), e.push=e,e.loaded=!0,e.version=’1.0′,e.queue=[];var f=o.createElement(c);f.async=!0, f.src=k;var g=o.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g)}}( window,document,’script’,’https://www.exploretock.com/tock.js’);
tock(‘init’, ‘drakes-brewing-dealership-oakland’);
tock(‘init’, ‘drakesbarn’);
.tock-button {
background-color: #3E6AEF; /* You can customize the background color here */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px; /* You can adjust the border-radius to change the shape */
}
(html code ends)
(html code below)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tock Button</title>
<style>
.tock-button {
background-color: #3E6AEF; /* You can customize the background color here */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px; /* You can adjust the border-radius to change the shape */
}
</style>
</head>
<body>
<!-- Tock Button wrapped inside an anchor tag -->
<a href="https://www.exploretock.com/drakesbarn" data-tock-business="drakesbarn" data-tock-reserve=true><button class="tock-button">Book Now</button></a>
<!-- button works -->
</body>
</html>
!function(t,o,c,k){if(!t.tock){var e=t.tock=function(){e.callMethod? e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e), e.push=e,e.loaded=!0,e.version=’1.0′,e.queue=[];var f=o.createElement(c);f.async=!0, f.src=k;var g=o.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g)}}( window,document,’script’,’https://www.exploretock.com/tock.js’);
tock(‘init’, ‘drakes-brewing-dealership-oakland’);
tock(‘init’, ‘drakesbarn’);
.tock-button {
background-color: #3E6AEF; /* You can customize the background color here */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px; /* You can adjust the border-radius to change the shape */
}
(html code ends)