Forum Moderators: not2easy

Message Too Old, No Replies

new to mobile friendly web design

designing mobile pages that reduce Google adsense ads

         

surnames

12:09 am on Jun 3, 2016 (gmt 0)

10+ Year Member Top Contributors Of The Month



I currently do not have mobile friendly pages at my website. Google has forced me to remove my 728x90 and 160x600 and replace it with one responsive ad at the top of the page.

This has resulted in a 50% drop in earnings, so I think it must be time to create alternative pages for desktop/tablet and mobile.

I would like to create 2 different pages; the original one (728x90 and 160x600 ads on a page for desktop/tablet and 1 responsive ad only at the top of a page for mobiles)

I found a code that does this:

<script type="text/javascript">
<!--
if (screen.width <= 640) {
window.location = "http://m.example.com";
}
//-->
</script>

This is limited and in the form it is in only serves all mobile users to the main mobile page at http://m.example.com

Is there some way I can automatically redirect each page at the original site to the corresponding one at the mobile site?

ie: http://example.com/sample/test.htm to http://m.example.com/sample/test.htm

thanks in advance

surnames

12:46 am on Jun 3, 2016 (gmt 0)

10+ Year Member Top Contributors Of The Month



I have spent over an hour trying to find an answer to this on the net. Why is there not one page (that I could find) that clearly explains mobile subdomain setup?

Two things are never covered:

1
how to redirect each page in a website to its corresponding page in the mobile subdomain. (with over 4000 pages its not practical to manually enter the code for each page

2
how to ensure that the Google do not penalize you for duplicating content (my desktop and mobile pages would be quite similar

not2easy

2:05 am on Jun 3, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I have not used the separate mobile pages option myself, but I just went back to the pages where Google has help for getting to responsive sites. If you haven't been there, it starts here with a short introduction to the options available: [developers.google.com...] and the specific question of dynamic serving is addressed here: [developers.google.com...]

The duplicate content question is covered there as well, in their Mobile SEO articles: [developers.google.com...]

HTH

surnames

4:13 am on Jun 3, 2016 (gmt 0)

10+ Year Member Top Contributors Of The Month



thanks, appreciate your efforts. It seems I need to research responsive website design, not the old mobile subdomain solution.

surnames

4:27 am on Jun 3, 2016 (gmt 0)

10+ Year Member Top Contributors Of The Month



the first thing I want to improve is so that the page resizes to fit in the screen of a mobile device (I am using a 800x400 resolution mobile to test it)

I understand that inserting this

<meta name="viewport" content="width=device-width, initial-scale=1">

in the header should make the whole page fit in the mobile screen. It does not. I have also tried removing any images larger than 400 wide.

Is there something additional I am supposed to do?

not2easy

5:42 am on Jun 3, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



The viewport does not control the width of the page but it is required for mobile devices to translate their device pixels. The css needs to define the dimensions of the elements on a page.

Since I don't know what you are converting from I don't have any suggestions. It makes a difference if you are using a CMS or if your pages are static html, built with some program or framework or even FrontPage. Without understanding what you're working from, it is hard to say what might help you best.

To get some general ideas about converting old sites to responsive, I put up some general suggestions over a year ago that may or may not help: [webmasterworld.com...] and of course things continue to evolve. Many people have gone with the Bootstrap Grid system, a free framework for responsive sizing.

vivalasvegas

1:16 pm on Jun 3, 2016 (gmt 0)

10+ Year Member



Using <meta name="viewport" content="width=device-width, initial-scale=1"/> will actually prevent your pages from zooming out and fitting the mobile screen, so try leaving it out.

If it's the website listed in your profile, converting using a responsive framework such as Twitter Bootstrap will not be complicated. You can basically keep your current design, if that's what you want, and make your pages responsive to any device. Here are some steps you could take:
1. Read as much as you can about responsive design and what it means.
2. Pick a responsive framework and study it as much as you can; you need to learn how their grid system works - once you do this it will all seem easy and fun.
3. Once your pages are converted test what they look like on as many different devices as possible; you don't need to actually load your pages using different devices - there are online tools for this.

not2easy

4:09 pm on Jun 3, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Using <meta name="viewport" content="width=device-width, initial-scale=1"/> will actually prevent your pages from zooming out and fitting the mobile screen, so try leaving it out.
You should not leave out the viewport meta tag, partly because Google will not accept pages without that meta tag as mobile friendly, even if they are. (I found that out by accidentally leaving out the tag on a recently updated page, then using "Fetch as Google" - oops). The main reason not to omit that tag is because without it, the browser will choose a width and they don't always play well with your css/html design.

As Peter-Paul Koch says (after extensive testing) :
Before rendering the page, the browser needs to know how wide the layout viewport is. This is the viewport relative to which CSS declarations such as width: 20% are calculated.

Without any further instructions the browsers pick a width themselves. In six of the eight tested browsers this is 980px, in BlackBerry and IE10 it’s 1024px. There’s no right or wrong here; this is just the browser vendors making a choice.
[quirksmode.org...]

NickMNS

5:13 pm on Jun 3, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Like I mentioned in your other thread, responsive with Bootstrap is the way to go. Building a second mobile site, means that you will have two websites. That is two sites to maintain into the future.

In addition to the resources that not2easy linked to above, here is some help for the implementation of the responsive ad code.
[support.google.com...]

RhinoFish

6:53 pm on Jun 3, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Google combined their Mobile Tester with their Pagespeed tester!
[testmysite.thinkwithgoogle.com...]