Okay
  Public Ticket #2531444
Front End Submissions
Closed

Comments

  •  2
    Matthew S Brown started the conversation

    When creating an event from the front, How can I get the button to generate coordinates for the weather like I have in the back end submission


  •  877
    Zhivko replied

    Hi,

    There's no such button for the front-end at the moment.

    I'll add one for the next update.


    Stachethemes Developer

  •  2
    Matthew S Brown replied

    Would it be possible to make it do this automatically?

    The easier it is for the user, the better the plugin will be.

  •  877
    Zhivko replied

    We'll leave it with a button next to the coordinates field for now since the geocoder is unable to find proper coordinates for the location sometimes.


    Stachethemes Developer

  •  2
    Matthew S Brown replied

    I am having a very difficultr time with the Front End Form.

    The styling is terrible and looks nothing like the Form created when using the shortcode [stec_submit_form]

    Here is the link to my Front End with the [stec_submit_form] form on top and my builder form below.

    https://www.recalltonyevers.org/?stec_esf=signing-event-form

    Why is the styling not working?

  •  877
    Zhivko replied

    Don't use the stec_esf custom post types for directly displaying the form. They are used to store the form data only.

    Create normal page and place the shortcode there.


    Stachethemes Developer

  •  2
    Matthew S Brown replied

    Thanks..

    I have another request/question.

    How do I change the default marker to a pin and not the big square?

  •  877
    Zhivko replied

    Open your theme or child-theme functions.php file and add following filter:

    // STEC MOD: Set google maps marker to pin
    add_action('wp_footer', function() {
        global $post;
        if (!is_a($post, 'WP_Post') || !has_shortcode($post->post_content, 'stachethemes_ec')) {
            return;
        }
        ?>
        <script type="text/javascript">
            (function ($) {             $(function () {
                    if (typeof $.stecExtend === 'undefined') {
                        return;
                    }
                    $.stecExtend(function (m) {
                        m.$instance.on('stecMapMarkerIcon', function (e, data) {
                            data.temp.stecMapMarkerIcon = '';
                        });
                    });
                });
            })(window.jQuery);
        </script>
        <?php
    });



    Stachethemes Developer