WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Changing text in selection fields on Events Page (10 posts)

  1. RichardWantsToKnow
    Member
    Posted 1 year ago #

    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???

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    you can change that using Settings > Formatting > Search Form and for additional modification see template file events-search.php - http://wp-events-plugin.com/documentation/using-template-files/

  3. RichardWantsToKnow
    Member
    Posted 1 year ago #

    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.]

  4. agelonwl
    Member
    Posted 1 year ago #

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

  5. RichardWantsToKnow
    Member
    Posted 1 year ago #

    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".

  6. agelonwl
    Member
    Posted 1 year ago #

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

  7. RichardWantsToKnow
    Member
    Posted 1 year ago #

    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.

  8. RichardWantsToKnow
    Member
    Posted 1 year ago #

    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.

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    Change

    <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.

  10. RichardWantsToKnow
    Member
    Posted 1 year ago #

    Sounds good! And thanks!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic