Novato Web
- Registrado
- 3 Ene 2024
- Mensajes
- 3
Como hacer un boton con opcion de whatsapp en Elementor
Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature may not be available in some browsers.
Novato Web
// Functions.php
// Whatsapp Button
add_action( 'wp_footer', 'awd_add_floating_info');
function awd_add_floating_info () {
?>
<div class="sticky-slider">
<i class="fa-whatsapp fab button-icon-left fa-lg" aria-hidden="true"></i> <a href="https://wa.me/<telefono>?text=Hola!%20Quisiera%20m%C3%A1s%20informaci%C3%B3n%20sobre%20las%20citas%20y%20la%20disponibilidad.%20Gracias!" target="_blank">Pide tu cita</a>
</div>
<?php
}
/* Whatsapp Button */
.sticky-slider {
position: fixed;
bottom: 1rem;
border: none;
border-radius: 30px;
background-color: #25d366;
color: #fff;
z-index: 10000;
box-shadow: 0 0 50px 0 rgba(0,0,0,.4);
padding: 1rem 2rem;
margin: 1rem 0;
right: 1rem;
font-size: 1rem;
font-size: 18px;
font-family: var(--body_typography-font-family);
}
.sticky-slider > a, .sticky-slider > a:hover {
color: #ffffff;
}
.sticky-slider:hover{
border-color: #ffffff;
background: #8d3baa;
background-image: linear-gradient(180deg,#8d3baa 0%,#9863ab 100%)
}
Utilizamos cookies esenciales para que el sitio funcione, y Cookies opcionales para ofrecerte una mejor experiencia.