• Resolved ladyjey

    (@ladyjey)


    I’ve updated the events in formatting. but I would like to have two different sets of formatting. for instance next 3 events will have full images and descriptions and boxed on the top, while as all the rest (say 4-8) will be listed normally. where do I go to modify this?

    Also, would I be able to assign different styling for shorcode that calls the event list? (these should not be sharing the same formatting that the main events page use)

    thanks for the help.

    https://www.ads-software.com/extend/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • agelonwl

    (@angelonwl)

    1. you can modify template file at wp-content/plugins/events-manager/templates/templates/events-list.php

    to use templates: https://wp-events-plugin.com/documentation/using-template-files/

    e.g.
    – copy events-list.php From wp-content/plugins/events-manager/templates/templates/ To your theme directory at wp-content/themes/Your Theme Name/plugins/events-manager/templates/events-list.php

    2. “different styling for shorcode”; try this tutorial https://wp-events-plugin.com/tutorials/creating-a-events-manager-add-on-a-complete-walkthrough/

    Thread Starter ladyjey

    (@ladyjey)

    Hello agelonwi,

    thanks for trying to help me.

    I did look at both of the links before I posted this. I was hoping for more…

    I will try to work #1.

    #2, though, is a little different from what I need. I don’t need different styles for different events. I need different styles for the way events are listed in different page. for instance, the way events are listed in Front page should be have different look than on the Events page itself, and on sidebars. right now they are all sharing the code in Events->Settings->Formatting->Events.

    I need to make it so that the shorcode is not taking the formatting from this.

    Where can I go modify this?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    you’d probably need to use PHP in order to get this done.

    $EM_Events = EM_Event::get();
    foreach($EM_Events as $EM_Event){
      //use php to decide on your format
      $format = '#_EVENTNAME ....';
      echo $EM_Event->output($format);
    }
    Thread Starter ladyjey

    (@ladyjey)

    hello Marcus,

    what I ended up doing was for the Events page, create a separate event template on the main directory, and pointed to it instead of default on the admin->pages->Events.

    so that the Event Page will have different layout than one formatted using Events Format tool. Events Format is being used for shortcodes only. Now, only if I can get shorcodes to have different styling depending on the page…. I think what I’ll do is have classname to be pulled from pagename or something and make that dynamic…

    thank you agelonwl and marcus for your help.

    agelonwl

    (@angelonwl)

    thanks for the update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘event page and short code formatting’ is closed to new replies.