Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @bodytayb

    Thank you for contacting us, you can use the link with tel: with the phone number you can further style the link using custom classes
    eg:

    <a href="tel:+1234567890">📞</a>

    Thread Starter bodytayb

    (@bodytayb)

    thanks for replying, But i mean showing the button fixed on the right corner for example, as the fixed call button

    Plugin Support Milind More

    (@milindmore22)

    Hello @bodytayb

    This is easy with little CSS and HTML you can add the call now button.

    Add the following code in your active themes functions.php file

    add_action( 'wp_footer', 'add_floating_call_button' );
    
    function add_floating_call_button() {
    	?>
    	<a href="tel:+1234567890" class="float">📞</a>
    	<?php
    }

    Now add the following CSS in Appearance->Customize->Additional CSS

    .float{
    	position:fixed;
    	width:60px;
    	height:60px;
    	bottom:40px;
    	right:40px;
    	background-color:#0C9;
    	color:#FFF;
    	border-radius:50px;
    	text-align:center;
    	box-shadow: 2px 2px 3px #999;
      display:flex;
      align-items:center;
      justify-text:center;
      text-decoration:none;
    }

    Update CSS styling as per your theme’s color preference.

    Plugin Support Milind More

    (@milindmore22)

    @bodytayb As we didn’t receive a response I will mark this as resolved. Feel free to open a new support topic if you continue to encounter issues.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘i want to show Call now Buttons on AMP pages’ is closed to new replies.