<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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>Support Forum - Topic: Iconbox Retina Image Replacement</title>
		<link>http://www.kriesi.at/support/topic/iconbox-retina-image-replacement</link>
		<description>Support Forum - Topic: Iconbox Retina Image Replacement</description>
		<language>en-US</language>
		<pubDate>Sun, 26 May 2013 01:59:27 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/iconbox-retina-image-replacement" rel="self" type="application/rss+xml" />

		<item>
			<title>Nick on "Iconbox Retina Image Replacement"</title>
			<link>http://www.kriesi.at/support/topic/iconbox-retina-image-replacement#post-99966</link>
			<pubDate>Thu, 07 Mar 2013 04:04:13 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">99966@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Ahh. I am sorry, thought this was about the main page. Now that we are on the same page, On the recipes page you showed above, the image of the icon itself is in the html which is not  as favorable to the media query approach to doing this. Need either a jquery solution or to detect retina via php where the short-code is executed. &#60;/p&#62;
&#60;p&#62;I looked for some jquery for retina replace ( &#60;a href=&#34;https://github.com/leonsmith/retina-replace-js&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leonsmith/retina-replace-js&#60;/a&#62; ) but all i find assumes that both the retina image and the normal image are defined inside css so the classes can be switched. Also there are no distinguishing classes to grab an individual icon, since the code is same for all of them.&#60;/p&#62;
&#60;p&#62;Here is actually a good solution&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;html&#38;gt;
    &#38;lt;head&#38;gt;
        &#38;lt;style type=&#38;quot;text/css&#38;quot;&#38;gt;
            .image_1_5x, .image_2x{
                display: none;
            }

            @media only screen and (min--moz-device-pixel-ratio: 1.5 ),
            only screen and (-webkit-min-device-pixel-ratio: 1.5 ),
            only screen and (min-device-pixel-ratio: 1.5 ),
            only screen and (-o-min-device-pixel-ratio: 3/2){
                .image_1x, .image_2x{
                    display: none;
                }
                .image_1.5x{
                    display: block;
                }
            }

            @media only screen and (min--moz-device-pixel-ratio: 2 ),
            only screen and (-webkit-min-device-pixel-ratio: 2 ),
            only screen and (min-device-pixel-ratio:2 ),
            only screen and (-o-min-device-pixel-ratio: 2/1){
                .image_1x, .image_1_5x{
                    display: none;
                }
                .image_2x{
                    display: block;
                }
            }
        &#38;lt;/style&#38;gt;
    &#38;lt;/head&#38;gt;
    &#38;lt;body&#38;gt;
        &#38;lt;img src=&#38;quot;kinkakuji.jpg&#38;quot; width=&#38;quot;320px&#38;quot; class=&#38;quot;image_1x&#38;quot;/&#38;gt;
        &#38;lt;img src=&#38;quot;kinkakuji@1.5x.jpg&#38;quot; width=&#38;quot;320px&#38;quot; class=&#38;quot;image_1_5x&#38;quot;/&#38;gt;
        &#38;lt;img src=&#38;quot;kinkakuji@2x.jpg&#38;quot; width=&#38;quot;320px&#38;quot; class=&#38;quot;image_2x&#38;quot;/&#38;gt;
    &#38;lt;/body&#38;gt;
&#38;lt;/html&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Lindsey on "Iconbox Retina Image Replacement"</title>
			<link>http://www.kriesi.at/support/topic/iconbox-retina-image-replacement#post-99917</link>
			<pubDate>Wed, 06 Mar 2013 22:50:41 +0000</pubDate>
			<dc:creator>Lindsey</dc:creator>
			<guid isPermaLink="false">99917@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Nick,&#60;/p&#62;
&#60;p&#62;Thank you for your patience with me! :)&#60;/p&#62;
&#60;p&#62;This is actually the smoothie page that I'm referring to - not on the homepage - :&#60;br /&#62;
&#60;a href=&#34;http://www.toxicfreechallenge.com/recipes/strawberry-festival-smoothie/&#34; rel=&#34;nofollow&#34;&#62;http://www.toxicfreechallenge.com/recipes/strawberry-festival-smoothie/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The icons are coded differently than the home page where I didn't use the iconbox shortcodes. &#60;/p&#62;
&#60;p&#62;The icons on this page are shortcodes and the span class I see in Google Chrome is &#34;iconbox_icon&#34;, not &#34;smoothie&#34;. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[iconbox title=&#38;quot;Fruits:&#38;quot; icon=&#38;quot;fruits.png&#38;quot;]

&#38;lt;ul&#38;gt;
&#38;lt;li&#38;gt;1 teaspoon lemon zest, grated&#38;lt;/li&#38;gt;
&#38;lt;li&#38;gt;3 cups strawberries&#38;lt;/li&#38;gt;
&#38;lt;/ul&#38;gt;
[/iconbox]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Just to clarify, are you saying I should replace this shortcode (as well as the other shortcodes) [iconbox title=&#34;Fruits:&#34; icon=&#34;fruits.png&#34;] on each of my 125 pages with this?&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;span class=&#38;quot;smoothie&#38;quot;&#38;gt;&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Thanks for your patience!!&#60;/p&#62;
&#60;p&#62;- Lindsey
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "Iconbox Retina Image Replacement"</title>
			<link>http://www.kriesi.at/support/topic/iconbox-retina-image-replacement#post-99864</link>
			<pubDate>Wed, 06 Mar 2013 18:49:17 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">99864@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Try this&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;#top span.smoothie{
background: url(&#38;quot;http://www.toxicfreechallenge.com/wp-content/themes/propulsion/images/icons/iconbox/fruits.png&#38;quot;) no-repeat scroll 0 0 transparent;
display: inline;
height: 149px;
left: 0;
padding-left: 60px;
padding-top: 20px;
padding-bottom: 10px;
width: 48px;
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {

#top span.smoothie{
background: url(&#38;quot;http://www.toxicfreechallenge.com/wp-content/themes/propulsion/images/icons/iconbox/fruits@2x.png&#38;quot;)no-repeat scroll 0 0 transparent;
}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and you would call it from your pages like this. h6 is not relevant here. I tested this on your site with google dev tools, and I am seeing the  icon. Just make sure you have the retina icon where the url points and change the names for your icons. Iconbox is just a name of a folder , if you like you can change it to foobar, there is no need to get fixated with that name.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;span class=&#38;quot;smoothie&#38;quot;&#38;gt;&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Lindsey on "Iconbox Retina Image Replacement"</title>
			<link>http://www.kriesi.at/support/topic/iconbox-retina-image-replacement#post-99717</link>
			<pubDate>Wed, 06 Mar 2013 00:45:53 +0000</pubDate>
			<dc:creator>Lindsey</dc:creator>
			<guid isPermaLink="false">99717@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thank you, Dude!&#60;/p&#62;
&#60;p&#62;He wrote back that he decided not to provide support via email, except if it is paid.&#60;/p&#62;
&#60;p&#62;He also said: &#34;iconbox&#34; seems to be a shortcode of your theme. Not sure if the images (icons) are from you, but if they aren't there are probably shipped with the theme and if they don't provide bigger version, well, you will have to use new ones, and probably to modify your theme code a bit.&#60;/p&#62;
&#60;p&#62;To which I wrote that I understood not providing unpaid support, as his plugin was free, and I noted that I designed my shortcode iconbox icons and they're in vector format.&#60;/p&#62;
&#60;p&#62;He replied that if they are in vector formats, I can use SVG versions of them for the website and it will work automatically in Retina.&#60;br /&#62;
If they are part of the theme, we shouldn't have them in the Media, they should actually be &#34;outside&#34; WordPress, with the @2x generated manually by you. Then in the CSS (device-pixel-ratio: 2), you specify the @2x files. He also said his plugin should cover the posts and all, not the images related to the themes. The themes should handle Retina themselves (since they often provides the icons and main images). &#60;/p&#62;
&#60;p&#62;I've never added SVG files to CSS although I have added @2x in media queries so I have to figure this next step out.&#60;/p&#62;
&#60;p&#62;- Lindsey
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Iconbox Retina Image Replacement"</title>
			<link>http://www.kriesi.at/support/topic/iconbox-retina-image-replacement#post-99557</link>
			<pubDate>Tue, 05 Mar 2013 09:40:19 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">99557@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi! &#60;/p&#62;
&#60;p&#62; Please report back if the plugin author provided a solution (or not). &#60;/p&#62;
&#60;p&#62; Best regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Lindsey on "Iconbox Retina Image Replacement"</title>
			<link>http://www.kriesi.at/support/topic/iconbox-retina-image-replacement#post-99479</link>
			<pubDate>Mon, 04 Mar 2013 21:36:24 +0000</pubDate>
			<dc:creator>Lindsey</dc:creator>
			<guid isPermaLink="false">99479@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks for helping, Nick! I tried your suggestion and to no avail. Then realized the .smoothie is actually coded in HTML as a class of the H6 tag, not an iconbox shortcode. &#60;/p&#62;
&#60;p&#62;I had setup WP Retina 2x when you suggested it previously and it is a wonderful plugin but doesn't show my shortcodes in the dashboard. I have emailed the creator, Jordy Meow to see if he can advise a solution or a reason as to why I don't see the images in the WP Retina 2x dashboard.&#60;/p&#62;
&#60;p&#62;I will update you as soon as I hear from him.&#60;/p&#62;
&#60;p&#62;Thanks so much for always kindly helping me!&#60;/p&#62;
&#60;p&#62;- Lindsey
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "Iconbox Retina Image Replacement"</title>
			<link>http://www.kriesi.at/support/topic/iconbox-retina-image-replacement#post-99182</link>
			<pubDate>Sun, 03 Mar 2013 00:44:35 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">99182@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;There is a plugin that does that quite easily with shortcodes &#60;a href=&#34;http://wordpress.org/extend/plugins/wp-retina-2x/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/wp-retina-2x/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Your media query looks alright to me but I don't like how you are targeting , please try this instead as it has the same styling as the smoothie icon on your home page.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;#top span.smoothie{
background: url(&#38;quot;http://www.toxicfreechallenge.com/wp-content/themes/propulsion/images/icons/iconbox/fruits@2x.png&#38;quot;) no-repeat scroll 0 0 transparent;
display: inline;
height: 149px;
left: 0;
padding-left: 60px;
padding-top: 20px;
padding-bottom: 10px;
width: 48px;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Lindsey on "Iconbox Retina Image Replacement"</title>
			<link>http://www.kriesi.at/support/topic/iconbox-retina-image-replacement#post-99068</link>
			<pubDate>Fri, 01 Mar 2013 20:30:00 +0000</pubDate>
			<dc:creator>Lindsey</dc:creator>
			<guid isPermaLink="false">99068@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Team!&#60;/p&#62;
&#60;p&#62;I'm trying to target an icon box to replace it's image with retina in my media query.&#60;/p&#62;
&#60;p&#62;I've tried targeting an icon box a few different ways:&#60;/p&#62;
&#60;p&#62;	@media&#60;br /&#62;
only screen and (-webkit-min-device-pixel-ratio: 2),&#60;br /&#62;
only screen and (   min--moz-device-pixel-ratio: 2),&#60;br /&#62;
only screen and (     -o-min-device-pixel-ratio: 2/1),&#60;br /&#62;
only screen and (        min-device-pixel-ratio: 2),&#60;br /&#62;
only screen and (                min-resolution: 192dpi),&#60;br /&#62;
only screen and (                min-resolution: 2dppx) { &#60;/p&#62;
&#60;p&#62;	 .iconbox_icon.fruits{ background:url(&#34;../images/icons/iconbox/fruits@2x.png&#34;) no-repeat; background-size: 50%; padding-top: 20px !important; }&#60;br /&#62;
	 .iconbox span.fruits { background:url(&#34;../images/icons/iconbox/fruits@2x.png&#34;) no-repeat; background-size: 50%; padding-top: 20px !important; }&#60;/p&#62;
&#60;p&#62;	.iconbox.iconbox_icon.fruits { background:url(&#34;../images/icons/iconbox/fruits@2x.png&#34;) no-repeat; background-size: 50%; padding-top: 20px !important; }&#60;br /&#62;
	.iconbox.iconbox_icon span.fruits { background:url(&#34;../images/icons/iconbox/fruits@2x.png&#34;) no-repeat; background-size: 50%; padding-top: 20px !important; }&#60;/p&#62;
&#60;p&#62;	.iconbox span.fruits { background:url(&#34;../images/icons/iconbox/fruits@2x.png&#34;) no-repeat; background-size: 50%; padding-top: 20px !important; }&#60;br /&#62;
	.iconbox_icon span.fruits { background:url(&#34;../images/icons/iconbox/fruits@2x.png&#34;) no-repeat; background-size: 50%; padding-top: 20px !important; }&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;I have even tried .iconbox span.fruits[icon=&#34;fruits.png&#34;] (just an idea) but to no avail. I'd really like to have retina for each icon box, as I have several icons, not just a fruits icon but several others. &#60;/p&#62;
&#60;p&#62;How do you suggest to target these?&#60;/p&#62;
&#60;p&#62;Thank you kindly!! &#60;/p&#62;
&#60;p&#62;- Lindsey
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
