WordPress.org

Forums

Customizr
[resolved] Add a tap to call (7 posts)

  1. Leapmkt12
    Member
    Posted 1 year ago #

    Hi My client doesn't have any social icons, but I need to add a Tap-to-call button in the header where the social icons normally are. What is the best way to do this?

  2. Leapmkt12
    Member
    Posted 1 year ago #

  3. Leapmkt12
    Member
    Posted 1 year ago #

    HI I tried the following in the functions php but have obviously done something wrong.
    'add_filter ('tc_social_in_header' , 'custom_social_in_header');
    function custom_social_in_header($resp) {
    //class added if not resp
    $class = ('resp' == $resp) ? '':'span5'
    ?>
    <div class="social-block <?php echo $class ?>">
    <?php if ( 0 != tc__f( '__get_option', 'tc_social_in_header') ) : ?>
    <?php echo tc__f( '__get_socials' ) ?>
    <img src="http://mermaidpavingandtiling.com.au/wp-content/uploads/2014/04/tap-to-call-button.png>
    <?php endif; ?>
    </div><!--.social-block-->
    <?php
    }'

    I keep getting a header error too, but all my php headers are correct?

  4. d4z_c0nf
    Member
    Posted 1 year ago #

    <img src="http://mermaidpavingandtiling.com.au/wp-content/uploads/2014/04/tap-to-call-button.png>
    closing double quotes missing...

  5. Leapmkt12
    Member
    Posted 1 year ago #

    duh!! Thanks for picking that up! It's always the little stuff appreciate it.

  6. d4z_c0nf
    Member
    Posted 1 year ago #

    Glad you solved :D

  7. Leapmkt12
    Member
    Posted 1 year ago #

    Thx

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic