Okay
  Public Ticket #1373965
team members
Closed

Comments

  • joris started the conversation

    Hi,

    Team members and the classifying is working great... but we would like to register phone number and address of the person which should only be visible for private users or users with a password.

    How can i achieve this?  The ' details page which is shown after clicking on a team member,  is not necessary for public users... 

  •  347
    OrionThemes replied

    Hi Joris,

    Currently we have no logic implemented, which would allow different preview for registered and non-registered users. However this could be achieved with some custom development. 

    Customisation services are sadly not covered by ThemeForest support, so we can't custom code this for free. But I can help with a bit of guidance, how it needs to be done, so you don't spend too much development time on this:

    Implementation of different display for registered and non-registered users would require modification of single-team-member.php and probably also customisation of Team Widget template, depending on desired widget behaviour. 

    There is already an option to not display the contact details in a widget, which hides the email and social links (for all users). So you might not need to modify the widget template files, if registered users do not need to see the contact details on the widget level.

    How to proceed with development:

    Dentalia theme comes with a child theme. If you activate the child theme and copy the file single-team-member.php to the child theme, you can then modify it to your needs. This way, you will be able to safely update Dentalia theme, when official theme update is released and keep your customisation.

    WordPress has a helpful function is_user_logged_in(), which can be used for checking if the user is logged in or not and then render the content accordingly.

    Additional phone field would probably also be necessary, if you want to display it (only) to registered users.

    Customisation services:
    If you need help with coding, we offer customisation services too. We charge a fee of 60$ per development hour. If you are interested, please send your detailed specification of desired behaviour - what public users see if they come to single team member page, and what they see on the widget and what additional information (if any), do you want to display... Then I can give you a final estimate on how much the customisation would cost.

    Kind regards,
    Andrej

  • joris replied

    Hi,

    Thanks for the reply. But the  theme is for our society (group of friends) and no budget for customisations...

    Will have to create a seperate page contactlist in a table on private page.

    How can I disable this click on the name ( see attachment screenshot of the public page)?     It should be done with some simple custom css but i'm not able to achieve this.

    Kind regards

    Joris

    Attached files:  2017-11-20_22-45-07.jpg

  •  347
    OrionThemes replied

    Hi Joris,

    If you want to disable title links on all team widgets, you can paste this snippet to Theme Options -> Custom CSS:

    .so-widget-orion_team_w .basic-info > a {
            pointer-events: none;
            display: block;
        }

    and this will disable all links on all team widgets:

    .so-widget-orion_team_w a {
            pointer-events: none;
            display: block;
        }

    kind regards,
    Andrej

  • joris replied

    Great! 

    Is it also possible to make it page dependent ? So that we we define it for my pageID (=2610) 

  •  347
    OrionThemes replied

    Yes, this is possible. Each page has it's id in the body tag. You can use Chrome dev tools to see it.



    Then you just add it before in the CSS with a dot before the other CSS. Example:
    .page-id-975 .so-widget-orion_team_w .basic-info > a {
        pointer-events: none;
        display: block;
    }

    kind regards,
    Andrej