• Is there an easy fix to allow me to put a URL to point the CTA slider buttons at instead of only posts/pages?

    I’m attempting to have our company # on each slide and utilitze an anchor tag with ‘tel:’ for easy phone use….

    Thanks, still having a blast messing with this theme. 🙂

    -Matt

Viewing 7 replies - 1 through 7 (of 7 total)
  • I posted a similar question a day or so ago, and didn’t get a response. In further searching (my first one was too specific) I found someone suggesting a redirect plug-in to accomplish it. Looks like you just create a page that is a redirect to whatever URL you want, with other controls.

    ‘Quick Page/Post Redirect Plugin’ was its name. Haven’t had time to play with it yet.

    Next, to make the button an image of its own….

    You can use the redirection plugin, by creating an empty page which will be redirected to whatever URL you want.You only need to point your slider button to that page.

    Thread Starter thedaigle

    (@thedaigle)

    Kind of what I figured I could do if no one responded, but sort of feel like it’d be a waste of resources/speed …

    Thanks for the reply! Very much appreciated, I’ll give the plugin a trial run. 🙂

    Redirection is the one commonly referenced here.

    Thread Starter thedaigle

    (@thedaigle)

    @rdellconsulting

    Thank you, kindly.

    Thread Starter thedaigle

    (@thedaigle)

    May be doing something wrong, but point it at a “tel:+##########” fails.

    This can be easily achieved with RTFR plugin.

    Of course, you do need to add some posts in a hidden category or some pages that you’re never going to use, select them in the picture slider options and replace each of their links with the tel:+ link. However, keep in mind that links to those posts/pages will get replaced with the tell links throughout the website, unless you build a fancy regex to make sure only the ones in the slider match your replacement rules.

    If you don’t feel comfortable using a replacement plugin, (though I recommend RTFR, it’s quite light and clean), you could run a preg_replace on tc_slider_display output. As in add this to your functions.php (child theme):

    add_filter('tc_slider_display', 'replace_links_with_tels');
    function replace_links_with_tels($output) {
    	return preg_replace(array(
    		'|href="link-to-post-1"|',
    		'|href="link-to-post-2"|',
    		'|href="link-to-post-3"|'
    	), array(
    		'href="tel:+#########1"',
    		'href="tel:+#########2"',
    		'href="tel:+#########3"'
    	), $output, -1);
    }

    Using this solution you don’t have to worry about links being replaced all over the website, hence you could use existing posts/pages as targets, since the preg_replace is only run on the slider.

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

The topic ‘Call to Action link – tel?’ is closed to new replies.