Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter mrppp

    (@mrppp)

    is there something I could add here settings – formatting- events – Default event list format

    You’d need to copy and edit the event-editor.php template at /plugins/events-manager/templates/forms.

    There’s more on modifying the plugin templates here:
    https://wp-events-plugin.com/documentation/using-template-files/

    Thread Starter mrppp

    (@mrppp)

    So copy the event-editor.php to my theme so I can edit from WP admin in editor?
    so possibly add some code under
    <h4 class=”event-form-name”><?php _e ( ‘Event Name’, ‘dbem’ ); ?></h4>
    <div class=”inside event-form-name”>
    <input type=”text” name=”event_name” id=”event-name” value=”<?php echo esc_attr($EM_Event->event_name,ENT_QUOTES); ?>” /><?php echo $required; ?>

    <?php _e ( ‘The event name. Example: Birthday party’, ‘dbem’ )?>
    <?php em_locate_template(‘forms/event/group.php’,true); ?>
    </div>

    Thread Starter mrppp

    (@mrppp)

    In My theme folder I only have folders called images, documentation, css so do I need to create a folder and call it events-manager

    then in there add a folder called templates then place event-editor.php into this directory below
    so I have wp-content/themes/MY THEME/plugins/events-manager/templates/forms/editor.php

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    have you tried #_ATT values?

    https://wp-events-plugin.com/documentation/event-attributes/

    those appear as fields automatically in your form editor, no editing required.

    Thread Starter mrppp

    (@mrppp)

    so would I enable “Enable event custom fields”

    Then I see in add event I have a “Add New Custom Field”
    Or would I just leave the events custom field as NO and add code into the box Event Attributes
    What would I type into here so I get a URL box for users to type a link to event with a “nofollow” attribute?
    Thank you

    Plugin Support angelo_nwl

    (@angelo_nwl)

    using event attributes, you can add something like #_ATT{external_link} which users can add their custom links and then to add nofollow ->

    you can use <a href="#_ATT{external_link}" rel="nofollow">#_ATT{external_link}</a> in your settings – formatting- events – Default event list format

    Thread Starter mrppp

    (@mrppp)

    ok not getting it to work, but ideally I was after getting it in the “where” under Location name, above address type in boxes

    Sorry I know I,m a bit slow, but all new to me WP

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Thread Starter mrppp

    (@mrppp)

    Thanks, not really helping but I will keep reading things may fall into place some day lol

    Thread Starter mrppp

    (@mrppp)

    Ah an easier solution maybe when adding event the “Region: ” Under postcode what file can I edit to change the word “Region: ” to “Website”. I don’t need region I can just have the state/county and could I add to that part of code in anyway to “nofollow”?

    Can I edit
    <tr>
    <th><?php _e ( ‘Region:’, ‘dbem’ )?>?</th>
    <td>
    <input id=”location-region” type=”text” name=”location_region” value=”<?php echo esc_attr($EM_Location->location_region, ENT_QUOTES); ?>” />
    </td>
    </tr>

    In /wp-content/plugins/events-manager/templates/forms/event/location.php

    I think you be better off adding a new field, rather than modifying an existing one.

    There are two bits to this – adding the extra info and displaying it in your templates (this is where you’d need to add the nofollow attribute to the link).

    For the adding the link part, are you using front-end forms, or WordPress admin?

    Thread Starter mrppp

    (@mrppp)

    “For the adding the link part, are you using front-end forms, or WordPress admin?

    Being new to WP I,m not sure, I login and have menus on left with plugins, etc “dashboard” so I assume WP admin, not sure what you mean by front end forms

    Thread Starter mrppp

    (@mrppp)

    I am adding/trying to add from WP admin

    Thread Starter mrppp

    (@mrppp)

    OK.
    Followed above post again.
    using event attributes, you can add something like #_ATT{external_link} which users can add their custom links and then to add nofollow ->

    you can use #_ATT{external_link} in your settings – formatting- events – Default event list format

    If I log in as user submit event I see option I have labelled website.
    I enter a URL and publish.
    But on events page I do not see any url or field called website

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Events page’ is closed to new replies.