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)

  • "Every man should marry.
    After all, happiness is not the only thing in life."


    Unknown
    Added: 11 July 2012 - 10:59 pm

Random Gallery Image



Recent Status Updates

  • Photo
      21 Jan
    gabbie

    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

ip.content

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
</if>
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


0 Comments



  • 39,106 Total Posts
  • 30 Total Members
  • killerwolfie Newest Member
  • 31 Most Online

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