<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1-alpha-2539" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>WordPress.com Forums &#187; Topic: Hide element when viewing on mobile</title>
		<link>http://en.forums.wordpress.com/topic/hide-element-when-viewing-on-mobile</link>
		<description>WordPress.com Forums &#187; Topic: Hide element when viewing on mobile</description>
		<language>en</language>
		<pubDate>Fri, 24 May 2013 01:11:19 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1-alpha-2539</generator>
				<atom:link href="http://en.forums.wordpress.com/rss/topic/hide-element-when-viewing-on-mobile" rel="self" type="application/rss+xml" />

		<item>
			<title>designsimply on "Hide element when viewing on mobile"</title>
			<link>http://en.forums.wordpress.com/topic/hide-element-when-viewing-on-mobile#post-984715</link>
			<pubDate>Wed, 22 Aug 2012 17:37:25 +0000</pubDate>
			<dc:creator>designsimply</dc:creator>
			<guid isPermaLink="false">984715@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<blockquote><p>Is there a CSS class or something that I can assign to the map element so that it will disappear for the mobile version?
</p></blockquote>
<p>You can do that with media queries based on screen size. Here is an example you can try:</p>
<pre><code>@media only screen and (max-width: 480px) {
	.content iframe {
		display: none;
	}
}</code></pre>
<p>There are a few caveats. The option above doesn't prevent the map from loading, it only hides it. Also, it hides all iframes within content (you could change this if you wrapped the map in a tag with a unique id or class using the <a href="http://en.support.wordpress.com/editors/#html-editor">HTML editor</a>).</p>
<p>However, I wouldn't recommend hiding the map at all. I checked out <a href="http://philsbikeshop.com/" rel="nofollow">http://philsbikeshop.com/</a> on my iPhone and I was able to scroll to the bottom pretty easily. iPhone users tend to be savvy when it comes to getting around like that. Also, the map is at the bottom of the page and so it doesn't seem that someone would be missing much if they actually couldn't get it to scroll for some reason. I vote for keeping the map. :)</p>
<p>Your site looks great! <a href="http://theme.wordpress.com/themes/blaskan/">Blaskan</a> seems to be a really good theme choice for you, and I love seeing when that happens.
</p>
]]></description>
					</item>
		<item>
			<title>thesacredpath on "Hide element when viewing on mobile"</title>
			<link>http://en.forums.wordpress.com/topic/hide-element-when-viewing-on-mobile#post-962918</link>
			<pubDate>Wed, 01 Aug 2012 07:24:12 +0000</pubDate>
			<dc:creator>thesacredpath</dc:creator>
			<guid isPermaLink="false">962918@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>There is no way using CSS to determine whether someone is on a mobile or not. That requires something like javascript and we can't use that here for security reasons.
</p>
]]></description>
					</item>
		<item>
			<title>mdwittenberg on "Hide element when viewing on mobile"</title>
			<link>http://en.forums.wordpress.com/topic/hide-element-when-viewing-on-mobile#post-962738</link>
			<pubDate>Wed, 01 Aug 2012 01:59:59 +0000</pubDate>
			<dc:creator>mdwittenberg</dc:creator>
			<guid isPermaLink="false">962738@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>I hope to have Google Maps displayed on the website <a href="http://philsbikeshop.com/">philsbikeshop.com</a> when viewing from a desktop, but disappear when viewing from a mobile phone. The reason is that  because the map spans across the page, it is nearly impossible to scroll the page beyond the map when on an iPhone (unfortunately finger swipes control the map).</p>
<p>Is there a CSS class or something that I can assign to the map element so that it will disappear for the mobile version? Even better, I'd like to have it be replaced with a small static picture of a map.</p>
<p>The theme is single column <a href="http://theme.wordpress.com/themes/blaskan/">Blaskan</a>.</p>
<p>I DID NOT buy custom CSS privileges and hope that I won't have to.</p>
<p>Thanks,<br />
Mitch
</p>
]]></description>
					</item>

	</channel>
</rss>
