• Resolved mullkv

    (@mullkv)


    On the homepage, the Preview link doesn’t work under the details for the next match.

    It seems to work if clicked in from the fixture list on the Fixtures page, but not on the widget on the homepage.

    The code used is: [event_teams 4692]

    I’ve tested on the standard 2021 Theme too and the same problem.

    Any idea? Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @mullkv,

    Add the following code to your theme functions.php file:

    function add_url_to_status( $status, $id ) {
    	$status = '<a href="' . get_post_permalink( $id, false, true ) . '" itemprop="url">'.$status.'</a>';
        return $status;
    }
    add_filter( 'sportspress_event_logos_status', 'add_url_to_status', 10, 2 );

    Thanks,
    Savvas

    • This reply was modified 4 years, 10 months ago by Savvas. Reason: Use the filter hook instead
    Thread Starter mullkv

    (@mullkv)

    Thanks – that worked!

    Plugin Contributor Savvas

    (@savvasha)

    I am glad it worked 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Match Preview Link Not Working’ is closed to new replies.