Hide To field in Messages


Home Forums Front End PM PRO Hide To field in Messages

This topic is: Resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #30493
    M G
    Participant

    Hi,

    I have a contact button which when clicked takes the username of the receiver and populates the ‘To’ field of the messages with that username . How can I hide the ‘To’ field in Messages?

    #30506
    Shamim Hasan
    Keymaster

    You can add following css in Front End PM PRO > Settings > Appearance > Custom CSS

    .fep-form-field-fep_pro_to {
    	display: none;
    }
    
    #31530
    M G
    Participant
    This reply has been marked as private.
    #31577
    Shamim Hasan
    Keymaster

    1. May be i did not understand you properly, which “To” field you want to hide?
    2. We can show shop name, but if you want to search with that shop name then that needs some custom coding.

    #31740
    M G
    Participant
    This reply has been marked as private.
    #31761
    Shamim Hasan
    Keymaster

    1. Then you will need to add that code conditionally. You can add following code in your theme’s functions.php

    add_action( 'wp_head', function () {
        if( !empty($_GET['fep_to']) ){
            echo '<style type="text/css">.fep-form-field-fep_pro_to {display: none;}</style>';
        }
    }, 99);
    

    2. You can follow https://www.shamimsplugins.com/support/topic/add-meta-data-fields-to-the-directory/#post-13499

    #31767
    M G
    Participant

    Thank you. This helped a lot.

Viewing 7 posts - 1 through 7 (of 7 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.