Hide Display name from Directory


Home Forums Front End PM PRO Hide Display name from Directory

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

    Hi,

    How can we hide display names from directory. We don’t need it as we have added store names as a column in the directory.

    Thanks

    #42637
    Shamim Hasan
    Keymaster

    Please add following code in your theme’s (child theme’s if you are using) functions.php

    add_filter('fep_directory_table_columns', function( $columns ){
        unset($columns['name']);
        return $columns;
    });
    
    #42668
    M G
    Participant

    Thank you Shamim, it worked.
    Just wanted to check if it is possible move the store name column before the send message link – meaning have the store name column on the left and send message on the right.

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

    Yes, possible. Add your field beginning of the $columns array. you can use array_unshift

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