Build Your Own Business Website header image

Welcome to our Members Only Forum

You are welcome to view the content on our Forum, just scroll down to view this forum post.
If you like what you find and want to be able to post a question, please check out our subscription options.
Please feel free to search the forum using either the Google Site Search above or the forum search below.

Avatar
Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Responsive Design Viewport Code
Avatar
Brittany Vanderlinden
Member
Members
Forum Posts: 36
Member Since:
December 6, 2012
sp_UserOfflineSmall Offline
1
January 13, 2014 - 7:34 pm
sp_Permalink sp_Print

I have built my first skin and used all the column classes and percentages recommended by Rick for building a responsive skin.  I am now working on skin 2.0, which will be responsive.  I have followed the videos but I think I am missing a very simple part of the equation.  

I know I put all the @media queries in my css but what code do I need to put in my head or skin.php or any php file to relate to this code.  I remember seeing something about this in one of the 2.0 videos but I can't find that anymore and 2.1 is different.

 

There is nothing in my skin.php right now except what lands there when one builds a skin.

 

I see from looking at the custom php in Agility Nude the following but I don't know if this is all I need or what I need.  Thanks so much!

 

public function meta_viewport() {
 return "initial-scale=1,width=device-width";
 }
Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
2
January 14, 2014 - 9:36 am
sp_Permalink sp_Print

Yes, if you insert that function into your skin.php it will add the necessary code to the head to make it responsive.

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 228

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Keith W Jones: 1428

Brian Tozer: 1004

Carolin: 982

Heidi Hafner: 508

John Cunningham: 423

Reece Morrel: 353

Newest Members:

emma62755

sharonmarks

emma80233

Tijs de Jong

Daniel Frey

mutek

Forum Stats:

Groups: 8

Forums: 46

Topics: 6995

Posts: 34796

 

Member Stats:

Guest Posters: 6

Members: 6761

Moderators: 2

Admins: 2

Administrators: Rick Anderson, Rick Anderson

Moderators: Pierre Cote, Laura Nugent