Remove parantheses brackets surrounding the new message count in[fep_shortcode_n


Home Forums Front End PM PRO Remove parantheses brackets surrounding the new message count in[fep_shortcode_n

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

    Hi,

    In order to remove the parantheses/brackets surrounding the new message count in the [fep_shortcode_new_message_count] shortcode, I modified the fuction.php code at line 375 as follow:
    function fep_get_new_message_button(){
    `if (fep_get_new_message_number()){
    $newmgs = ” <span class=’fep-font-red’>”;
    $newmgs .= fep_get_new_message_number();
    $newmgs .='</span>)’;
    } else {
    $newmgs = ”;
    }`
    So, here’s my question. Is there a way I can remove the parantheses without modifying the core plugin files? Maybe adding a snippet of code in the fuction.php file within my child-theme?

    Thank you

    #7312
    Shamim Hasan
    Keymaster

    Core file is change not recommended, it will be overwritten everytime you update this plugin.
    New version will be released next week, There are so many changes in this shortcode and notification in this version. You can pass parameter to hide bracket. See https://github.com/shamim2883/front-end-pm/commit/5ea77e5c6e38c3b9a06cf45b0c4c00ce757d6030

    #7414
    Dominique Baril
    Participant

    Great! Can’t wait to upgrade to new version.

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.