1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Using code module to set phone number in Global Header/Footer template build

Discussion in 'Free Divi Community Forum' started by Scott Douglas, Feb 1, 2020.

  1. Scott Douglas

    Scott Douglas Member

    Hi,

    I've used the code module in the footer and header global template builder to setup the phone number.

    I've attached a pic of the code I put in, basic stuff, the class part simply sets the typography.

    I was wondering if it's possible to link the phone number so that it can be used on the mobile version.

    I came across something similar for adjusting the header.php file, but b/c this is a custom build I'm unsure of how to apply it here.

    This is the code that I found on a blog for adjusting the header.php:

    <spanid="et-info-phone"><ahref="<?php echo esc_attr( 'tel:' .$et_phone_number); ?>"><?phpecho et_core_esc_previously( et_sanitize_html_input_text( $et_phone_number ) ); ?></a></span>
     

    Attached Files:

    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Industrial' Divi layout for all Pro members:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Just wrap your phone number with the a tag HTML + tel:

    <a href="tel:1234567890">123-456-7890</a>
     
  3. Scott Douglas

    Scott Douglas Member

    Makes sense, thanks!
     
    1. PRO MEMBER PERKS Divi Ultimate Child Theme - Tons of premade layouts & section designs + functionalities for your Divi site:Learn More