hyperlink all text on message notification


Home Forums Front End PM PRO hyperlink all text on message notification

This topic is: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10538
    damian
    Participant

    Hi,

    thanks for your continued support. At the moment on the message notification only the MESSAGE is hyperlinked through to the message page. Is it possible to make ALL the text a link?

    You have 1 new message

    rather than

    you have 1 new message unread

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #10556
    Shamim Hasan
    Keymaster

    “X messages” and “X announcements” are hyper linked. So when click “X messages” it will redirect you message box page, and same for announcements.

    To make full notification clickable add following code in your theme’s (Child theme’s if any) functions.php

    add_filter( 'fep_header_notification', function( $show ){
    	$show = '<div onclick="location.href=\'' . fep_query_url('messagebox') . '\';" style="cursor:pointer;">' . $show . '</div>';
    	return $show;
    });
    
    #10670
    damian
    Participant

    cheers

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

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.