This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

epoolroy

  • ****
  • 121 posts
Hide left sidebar from User
« on: April 17, 2018, 06:52:17 AM »
Hello, how can i hide sidebar menu from user dashboard? I want show just for company only...
Thank you
« Last Edit: April 17, 2018, 06:59:32 AM by epoolroy »

*

MB Themes

Re: Hide left sidebar from User
« Reply #1 on: April 17, 2018, 09:32:44 AM »
@epoolroy
You can find funciton that generates user side menu in functions.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

epoolroy

  • ****
  • 121 posts
Re: Hide left sidebar from User
« Reply #2 on: April 17, 2018, 09:44:02 AM »
@epoolroy
You can find funciton that generates user side menu in functions.php

How can i put a code for hide from user?
Can you help me...
I try this code but not work.... im not programming sorry if im mistake...
i use php logical operators from this url

http://php.net/manual/en/language.operators.logical.php

with this code
Code: [Select]
<?php if(!osc_user_is_company() && osc_is_web_user_logged_in()) { ?>
.....
<?php ?>

Can you assist me how i need use this code... thank you

Marked as best answer by epoolroy on April 18, 2018, 10:32:02 AM
*

MB Themes

Re: Hide left sidebar from User
« Reply #3 on: April 17, 2018, 01:55:47 PM »
Try without php tags as it already is php code
Code: [Select]
if(!osc_user_is_company() && osc_is_web_user_logged_in()) {
.....
}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

epoolroy

  • ****
  • 121 posts
Re: Hide left sidebar from User
« Reply #4 on: April 18, 2018, 10:31:58 AM »
Try without php tags as it already is php code
Code: [Select]
if(!osc_user_is_company() && osc_is_web_user_logged_in()) {
.....
}

Thank a lot... its work