Okay
  Public Ticket #2471950
Frontend
Closed

Comments

  • Joanntv started the conversation

    Is it possible to control the layout of this page? 

    I am looking to display more of a grid view rather than the list view.

  •  894
    Zhivko replied

    Hi,

    Open your theme or child-theme functions.php file and add following filter:

    add_filter('stec_organizer_page_shortcode', function($default, $organizer) {
        return sprintf('[stachethemes_ec views="grid" view="grid" show_top=0 show_create_event_form="0" organizer_id="%s"]', $organizer->get_id());
    }, 10, 2);


    This filter basically overrides the default shortcode that displays the organizer's events.


    Stachethemes Developer

  • Joanntv replied

    Thank you!


    Another question, is there a shortcode that can display presenters based on a category? 

    Or how would you if possible, recommend me displaying the presenters in a grid fashion?

  •  894
    Zhivko replied

    Are you familiar with html and css?


    Stachethemes Developer

  • Joanntv replied

    Yes, is that something that would need to be done with CSS?

    Currently i have them laid out in the grid already: http://fallonug.kinsta.cloud , and last resort is linking to them by hand for each presenter, but i would love to display a shortcode or something that would display similar to your built in presenter page which i customized with css to show only thumbnail and name:

    http://fallonug.kinsta.cloud/event-organizers/

  •  894
    Zhivko replied

    I can provide you with a custom shortcode that will pull organizers by ids for example but you will have to style the css. Is that ok?


    Stachethemes Developer

  • Joanntv replied

    Yes, and that ID would be a category id?

    I have edited some custom css for your template page allready.

    http://fall.onug.net/event-organizers/

    I set a width and hid the bio.

    Maybe that css can work with what you write, but basically anything i need to do let me know.

  •  894
    Zhivko replied

    Hi,

    I've attached a text file with the shortcode code.

    Insert the code in your theme or child-theme functions.php file.

    Shortcode examples:

    [stec_organizers id=1]
    [stec_organizers id=1,2,3,4]
    

    Where 1,2,3,4 are organizers id numbers.


    Stachethemes Developer