Support » Fixing WordPress » [Plugin: Events Manager] Changing text in selection fields on Events Page

  • Resolved RichardWantsToKnow


    I would like change the text in the submit button on the Events Page. The default is ‘Enter Search Text Here’, which really isn’t intuitive.
    Also, I would like to put text into the date fields (2) on that same page. The default is blank fields which does help the ‘challenged’ site visitor; (but it does eat up our office hours answering unnecessary questions).
    Can anyone tell me which file, in which folder, is the template for that part of the Events Page???

Viewing 9 replies - 1 through 9 (of 9 total)
  • you can change that using Settings > Formatting > Search Form and for additional modification see template file events-search.php –

    The Settings > Formatting > Search Form part doesn’t apply; as the phrase ‘Enter Search Text Here’ is used in both the ‘Enter Search Text Here’ box and on the Submit button. The Formatting section works on the ‘Enter Search Text Here’ box, not the Submit button.

    With regard to the Submit Button, in the file: events-search.php, the code for the Submit button is:

    <?php do_action('em_template_events_search_form_ddm'); //depreciated, don't hook, use the one below ?>
    		<?php do_action('em_template_events_search_form_footer'); ?>
    		<input type="hidden" name="action" value="search_events" />
    		<input type="submit" value="<?php echo $s_default; ?>" class="em-events-search-submit" />

    The part in question is:

    <input type="submit" value="<?php echo $s_default; ?>" class="em-events-search-submit" />

    Where do I find the value for $s_default? I’m assuming that is where the text “Enter Search Text Here” is found. Or, is it in the class “em-events-search-submit”; and where is that to be found?

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]

    hi, can you try the latest version? it should be at Settings > Formatting > Search Form > Text search label

    We have the current version: 5.2.2.
    When I change the text as you describe, the text in the SUBMIT button “AND” the Text Search Box both change to the next text. That is not acceptable.
    I changed the text to : “Click Here to Send Search”.
    The SUBMIT Button now says that, that is what I wanted for that button.
    However, the Text Search Box now says the same thing.
    I want that Text Search Box to say what it originally said: “Enter Search Text Here”.

    I see what you mean, you can modify template file events-search.php and change the button label there.

    Could you quote the actual part of the file to change please?
    In reviewing the file it appears that the text is not text in that file but is a variable, and I’m not sure where that variable originated from and whether it is global or local.

    Please see my post above where I quote the code and first asked this same question.

    This appears to be the line in question, but I could be wrong about that. I cannot tell. I shows as a class, so that means the class could be applied elsewhere, which means I really need to know specifically what I change.

    <input type="submit" value="<?php echo $s_default; ?>" class="em-events-search-submit" />

    Thank you.




    <input type="submit" value="<?php echo $s_default; ?>" class="em-events-search-submit" />

    to e.g. <input type="submit" value="Search" class="em-events-search-submit" />

    and then modify your other field in settings, I’ll add an option to change the submit button next update.

    Sounds good! And thanks!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Events Manager] Changing text in selection fields on Events Page’ is closed to new replies.