• Resolved catwingz

    (@catwingz)


    Hi,
    Btw, my client really likes this theme. Is there any way to make the home page banner and the featured images for pages clickable links? —like a ‘click to call’?
    thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Yes you can do that the code of home page banner is in sidebar-header.php and featured images are fetched from content.php or content-<your post type>.php file.

    Thread Starter catwingz

    (@catwingz)

    I am coming back to this project and currently working on the banner. In the past she has had different banners on different pages, so this may call for a two-part solution.

    In sidebar-header.php is this the right line of code for the ‘click to call’ link to be inserted? The link currently goes to a blank page, so it needs some attention.

    <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="lum-header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php bloginfo('name'); ?>" /></a>
    
    My php is very limited, so I could use some guidance here. thanks

    Hi Catwingz,
    We are abit confused about the code for click to call and where do you want to use. Could you explain in brief with a attached url or screenshot so we could provide exact solution.

    Thanks.

    Thread Starter catwingz

    (@catwingz)

    There is a phone number in the banner on the home page. I’d like to make that active for click to call. I would also like to know if it is possible to do the same thing on other pages if she decides to add more or different banners on other pages. See this screenshot. Thank you

    Hi Catwingz,
    Use the following snippets and make chanes on sidebar-header.php

    <aside id="lum-wpheader" class="span12">
    <a href="tel:+(your number) "><img src="<?php echo esc_url( $header_image ); ?>" class="lum-header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php bloginfo('name'); ?>" /></a>
    				</aside>

    Thanks

    Thread Starter catwingz

    (@catwingz)

    Hi,

    This helped, but I must be doing something wrong. I put the edited file in the child theme. When I try to click on it on my desktop computer it asks if it can launch Skype or some other application, but when I try it on my Android it just refreshes the home page.

    What am I missing?

    Thank you

    Hi,
    You can launch phone application while it asks for Skype :). Change your phone settings as it will work.

    Thanks.

    Thread Starter catwingz

    (@catwingz)

    There is a misunderstanding here. The link isn’t being recognized with mobile. It’s not a matter of changing the phone settings.

    The Skype piece is only being offered on desktop, not at all useful.

    Please tell me what I’ve missed with the code for it to show up for mobile.

    thank you

    Hi Catwingz,

    The code works on our computers could you please share the site url so we could check it.

    Thanks.

    Thread Starter catwingz

    (@catwingz)

    Sorry, I thought I had provided it at the beginning. It’s here. Thank you

    Hi Catwingz,

    It is working in the phones too. Check out the screenshot.
    http://imgur.com/KAHEoKC

    Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘clickable link in banner?’ is closed to new replies.