Adjusting link in shortcode

Home Forums Calendar Products Events Calendar PRO Adjusting link in shortcode

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1230848
    Kim
    Participant

    I use the tribe_events_list category shortcode on my page
    The link of this shortcode goes to the main category page but this page is not in use (https://beeldmakersclub.nl/evenementen/ategorie/activiteiten-beeldmakersclub-nl/)

    I have made a page and used shortcode to display the events and I want to the link to go there. https://beeldmakersclub.nl/activiteiten-beeldmakersclub-nl/

    How can I do this?

    #1231777
    Barry
    Member

    Hi Kim!

    Can you link me (by private reply if you prefer) to:

    • The page where you are using your shortcode
    • Your main events page

    Thanks!

    #1231913
    Kim
    Participant

    Hi Barry,

    This is the homepage where the widget is used; https://beeldmakersclub.nl/
    When hitting ‘bekijk meer’ it should go to this page:

    https://beeldmakersclub.nl/activiteiten-beeldmakersclub-nl/

    Thanks in advance
    Kim

    #1232477
    Barry
    Member

    Thanks for clarifying, Kim.

    You should be able to modify the URL with some code like this:

    function modify_list_widget_link_url() {
    	return 'https://beeldmakersclub.nl/activiteiten-beeldmakersclub-nl/';
    }
    
    add_filter( 'tribe_events_get_list_widget_view_all_link', 'modify_list_widget_link_url' );

    This code could be added to a custom plugin or to your theme’s functions.php file (which isn’t always ideal, if the theme might be overwritten during a future update).

    Does that help at all?

    #1249073
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Adjusting link in shortcode’ is closed to new replies.