• Resolved shaggett

    (@shaggett)


    At first I was dealing with the datepicker issue, but then I realized I can just override the when.php and when-with-recurring.php files and do it myself.

    However, my changes are not taking effect.

    WP Fastest Cache is set up to exclude anything (css, js, pages) that contains events or events-manager, still no luck.
    I also disabled the plugin, and still no luck.
    Cleared cache/cookies and tested on our different wifi networks, and still no luck.

    I have the path set up correctly (omitting the first “templates” folder) for the child files. I even edited the plugin’s actual files and while it shows my changes in the backend, it is not reflecting on the frontend and still shows the original code.

    Is there something I’m missing here? Not sure why I can’t edit the submission form.

    Thanks

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    If you’re looking to modify the Front-end form, The template is located under: events-manager\templates\forms\event-editor.php Here is a link on how to use template files on your theme. https://wp-events-plugin.com/documentation/using-template-files/

    Thread Starter shaggett

    (@shaggett)

    Hi there,

    I was looking to modify specific sections in the form (ie: When, Where).
    I have copied event-editor.php and location-editor.php to my theme folder to see if that would help resolve my issue, but it did not.

    The link you referenced about creating child template files is what I used to create mine before I created a support post.

    So for example, the paths for the child when.php and when-with-recurring.php files are:
    wp-content/themes/BIDPeekskill/events-manager/forms/event/when.php
    wp-content/themes/BIDPeekskill/events-manager/forms/event/when-with-recurring.php

    the parent files for when.php and when-with-recurring.php still reside at:
    wp-content/plugins/events-manager/templates/forms/event/when.php
    wp-content/plugins/events-manager/templates/forms/event/when-with-recurring.php

    Creating these child files did reflect on the frontend, though.
    Editing the parent files also does not reflect on the frontend.

    You are using the wrong path!

    wp-content/themes/your-theme/plugins/events-manager/forms/event/when.php

    Thread Starter shaggett

    (@shaggett)

    Ah! Thanks. So now my when’s edits are showing on the frontend, however the where’s are not. But that’s not quite as important right now.

    Datepicker still does not pop up for me, and it’s telling me it’s the wrong format when I enter a date.

    mm/dd/yyyy was working originally when I manually entered the date, which was why I have the note on the page, but now I get the error “Dates must have correct formatting. Please use the date picker provided.”

    Any ideas?

    I have just submitted an event to your site. My findings are in the Event content. ??

    Your date picker says it needs dd-mm-jjjj, so a dash, not a slash. Is that the problem?

    Thread Starter shaggett

    (@shaggett)

    Hmm, I don’t see it in our pending list. I’ll wait a little to see if it’s just delayed in being received. Thanks for helping with this, though!

    It should be saved to the WP database immediately. There should not be any delay.

    Thread Starter shaggett

    (@shaggett)

    Hmm, don’t see any pending submissions from you.

    Any way to change the format for the datepicker? The frontend shows it as “dd/mm/yyyy” when I use type="date" (keeping the default type="text" does not show the datepicker popup on the frontend like it’s supposed to)

    Our site visitors are used to date formats being “01/31/2019″ rather than 31/01/2019” and making them need to manually type in hyphens would just be another step they’ll be confused about.

    • This reply was modified 5 years, 9 months ago by shaggett.
    Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry for the confusion however as for the date picker format you can try settings under Events > Settings > Formatting > Date/Time > Date Picker Format

    Thread Starter shaggett

    (@shaggett)

    Hi, the format is set as dd/mm/yy, so the output should be 03/13/2019 if I were to type out the date. When using type="date", it would say that it is the wrong date format, even though I selected the date in the dd/mm/yyyy format.

    I switched the code back to type="text", but added a placeholder so visitors were aware of the format when they type in the date manually:
    <input class="em-date-start em-date-input-loc" type="text" placeholder="01/31/2019" />
    and
    <input class="em-date-end em-date-input-loc" type="text" placeholder="01/31/2019" />

    The good news is, I found out why the datepicker wasn’t popping up!

    For future people reading this, if you are using Bridge theme, add this to your custom CSS and the datepicker will work:

    div#ui-datepicker-div {
        z-index: 9999 !important;
    }
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Cannot Override Form’ is closed to new replies.