Amount of related events manageable?

Home Forums Calendar Products Community Events Amount of related events manageable?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1022557
    M
    Participant

    Hi,

    I am a new user of this fabulous product.

    Question: I see the amount of related events is now 3 at my site. Can I manage this amount, let’s say for example 5 events.
    Look forward to see your answer(s).

    Thanks.

    #1022565
    George
    Participant

    First of all, thanks for calling our product “fabulous” – welcome to the forums! πŸ˜€

    You can indeed change the amount of “related events” that are pulled into the Related Events sections on your site, but it will unfortunately require a bit of custom at this time πŸ™

    To change the amount of events, head to your theme’s functions.php file and add some code like this somewhere in that file:


    if ( function_exists( 'tribe_get_events' ) ) {

    add_filter( 'tribe_related_posts_args', 'tribe_support_1022557' );

    function tribe_support_1022557( $args ) {
    $args['posts_per_page'] = 5;
    return $args;
    }
    }

    That’ll increase the number to 5, but change it to any number you’d like and it should do the trick! πŸ™‚

    Cheers,
    George

    #1022633
    M
    Participant

    Many thanks George. That does indeed the trick!
    However I know have them on two different rows because of the widths … would that possible to reduce to one row, responsive design?

    #1023425
    George
    Participant

    Hey @M,

    You can indeed implement responsive design on your site if you’d like, but that is unfortunately not something I can help with πŸ™

    Definitely check out a [free!] tool like Firebug if you use FireFox, or the Developer Tools for either Safari or Chrome. They have “Inspector” tools that let you zoom right over the elements whose styles you need to change, and it’s very very helpful.

    Best of luck with your custom design!

    George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Amount of related events manageable?’ is closed to new replies.