Okay
  Public Ticket #2237535
Remove directions feature from single page
Closed

Comments

  • ricardoont started the conversation

    Hello, 

    I have a small issue with the single page: I don't need the directions feature in my site and I can't find the setting to remove it. 

    I also don't want to ask users permission to use their location, I think its related to that feature, isn't it?

    Any help appreciated, thanks!



  •  894
    Zhivko replied

    Hi,

    Open your theme functions.php file and add this code:

    add_action('stec_single_after_content', function() {
        ?>
        <script type="text/javascript">
            (function($){
                $('.stec-layout-single-location-right input[name="start"]').val('none');
                $('.stec-layout-single-location-right').hide();
            })(jQuery);
        </script>
        <?php
    });



    Stachethemes Developer