• Resolved webworks

    (@webworks)


    Hello,
    The client has requested the directions button to link directly to “line-by-line” text directions (instead of the visual map)

    Is there any way to do this and/or a way to use a custom hardlink for the button?

    Thanks in advance for your response,

    Here is the profile code:

    
    {"PHP":"7.0.33","Wordpress":"5.0.3","Theme":"3clicks Child Theme (3clicks) 1.0","URL":"apartmentsinbluffton.com","Plugins":["cms-commander-client\/init.php","gravityforms\/gravityforms.php","Ultimate_VC_Addons\/Ultimate_VC_Addons.php","akismet\/akismet.php","all-in-one-wp-migration\/all-in-one-wp-migration.php","autoptimize\/autoptimize.php","classic-editor\/classic-editor.php","google-analytics-dashboard-for-wp\/gadwp.php","google-webfont-optimizer\/google-webfont-optimizer.php","imagify\/imagify.php","insert-headers-and-footers\/ihaf.php","js_composer\/js_composer.php","mobile-call-now-map-buttons\/roi-mobile-call-now-map-buttons.php","nxs-snap-pro-upgrade\/nxs-snap-pro-upgrade.php","page-links-to\/page-links-to.php","photo-gallery\/photo-gallery.php","really-simple-ssl\/rlrsssl-really-simple-ssl.php","revslider\/revslider.php","social-networks-auto-poster-facebook-twitter-g\/NextScripts_SNAP.php","ultimate-tables\/init.php","wordpress-seo-premium\/wp-seo-premium.php","wp-edit\/main.php","wp-rocket\/wp-rocket.php","wpseo-local\/local-seo.php"]}
    

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author David Sword

    (@davidsword)

    Hello,

    This is currently not a feature or option, but you can “hack” this in with some javascript:

    jQuery(window).load(function() {
      	jQuery('html body #rpb a#map_now').attr( 'href', 'https://your_custom_link_here' );
      });

    Some themes or plugins allow for the addition of JS. If you want to hard code this into your functions.php you can do so with:

    add_action( 'wp_footer', function() {
      ?>
      <script>
      jQuery(window).load(function() {
      	jQuery('html body #rpb a#map_now').attr( 'href', 'your_custom_link_here' );
      });
      </script>
      <?php
    }, PHP_INT_MAX );

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Link to text Directions’ is closed to new replies.