Advertisement:

Author Topic: How to hind Location Home Page  (Read 728 times)

developersend

  • Newbie
  • *
  • Posts: 30
How to hind Location Home Page
« on: July 11, 2017, 10:46:28 pm »
How to hind Location osclass 3.7.1 Home Page ?

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: How to hind Location Home Page
« Reply #1 on: July 11, 2017, 11:59:15 pm »
Hi,

do you mean HOW TO HIDE that particular part of the web page?

developersend

  • Newbie
  • *
  • Posts: 30
Re: How to hine Location Home Page
« Reply #2 on: July 12, 2017, 12:20:24 am »
yes

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: How to hind Location Home Page
« Reply #3 on: July 12, 2017, 12:28:49 am »
You could comment out the code in main.php(sidebar) if I remember right, or you could edit main.css and add display:none; to that class, + the corresponding scss file in sass folder of your theme.

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: How to hind Location Home Page
« Reply #4 on: July 13, 2017, 03:25:21 am »
Yes, I think it's best/simplest to comment out the main-sidebar.php file in main.php
Code: [Select]
osc_add_hook('after-main','sidebar');
    function sidebar(){
        osc_current_web_theme_path('main-sidebar.php');
    }

You could comment out the code in main.php(sidebar) if I remember right, or you could edit main.css and add display:none; to that class, + the corresponding scss file in sass folder of your theme.

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: How to hind Location Home Page
« Reply #5 on: July 13, 2017, 09:41:01 am »
I forgot to mention that commenting out code, exposes the php code.

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: How to hind Location Home Page
« Reply #6 on: July 13, 2017, 09:35:29 pm »
True and a good tip with security in mind, I have to look at that in my own website :)

I forgot to mention that commenting out code, exposes the php code.