Light Style© by Fisana

Jump to content

Wolfie's Whine's uses cookies. Read the Privacy Policy for more info. To remove this message, please click the button to the right:    I accept the use of cookies

Quotes (View All Quotes)

  • "You cannot depend on your eyes when your imagination is out of focus."

    Mark Twain
    Added: 11 July 2012 - 11:06 pm

Random Gallery Image

Recent Status Updates

  • Photo
      21 Jan

    Well thts all my towels, flannels , sheets and bed clothes tidied up and put bk nice and neat.

View All Updates

- - - - -

Mobile View - Remove sidebars


This is just a simple bit of code to remove the sidebars if viewing with the mobile skin. This was posted on the IPS website, when I came across it I thought straight away it would come in useful.
So to remove the sidebars only on the mobile view we need to see if the user is using the mobile view or not.
<if test="$this->registry->output->skin['set_key']!='mobile'">
//sidebars code
Now that code there needs to be added in a Template or a Block, with the code for your sidebar between it. This will also work if your using the default wrapper from IPS setting.

All this simple check does is see if the mobile skin is being used or not and then removes the sidebar if it is.

Thanks to Marcher Technologies for this wonderful tip


  • 44,165 Total Posts
  • 30 Total Members
  • killerwolfie Newest Member
  • 31 Most Online

  • 0 Total Albums
  • 0 Total Images
  • 0 Total Comments
  • 0 Total Image Views