<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Italicize product title?</title>
    <link>http://forums.shopify.com/categories/2/posts/30534</link>
    <language>en-us</language>
    <description>Feed for discussion topic Italicize product title?</description>
    <item>
      <title>Italicize product title?</title>
      <author>hana_nell</author>
      <pubDate>Sun, 25 Oct 2009 20:21:44 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30534</link>
      <guid>http://forums.shopify.com/categories/2/posts/30534</guid>
      <description>&lt;p&gt;There is no doubt a neat, obvious solution to this, but... What is the best way to italicize a product's title so that it reads consistently as italicized? Using the '_x_' notation doesn't work at all, and when I use '&amp;lt;i&amp;gt;x&amp;lt;/i&amp;gt;', the title is italicized &lt;em&gt;within&lt;/em&gt; the page, but the page &lt;em&gt;title&lt;/em&gt; shows the brackets.&lt;/p&gt;
&lt;p&gt;Sorry for the newbie question.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Caroline Schnapp commented</title>
      <author>Caroline Schnapp</author>
      <pubDate>Sun, 25 Oct 2009 20:34:54 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30534#comment-30535</link>
      <guid>http://forums.shopify.com/categories/2/posts/30534#comment-30535</guid>
      <description>&lt;p&gt;Do you have a link to your product page, hana_nell?&lt;/p&gt;
&lt;p&gt;What you are trying to accomplish can be done with a simple rule added to your stylesheet.&lt;/p&gt;</description>
    </item>
    <item>
      <title>hana_nell commented</title>
      <author>hana_nell</author>
      <pubDate>Mon, 26 Oct 2009 00:05:21 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30534#comment-30537</link>
      <guid>http://forums.shopify.com/categories/2/posts/30534#comment-30537</guid>
      <description>&lt;p&gt;Thanks for responding, Caroline. We haven't gone live yet, so I can't link you to a product page, but here is the stylesheet:&lt;/p&gt;
&lt;p&gt;[removed]&lt;/p&gt;
&lt;p&gt;I appreciate the help!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Mark Dunkley commented</title>
      <author>Mark Dunkley</author>
      <pubDate>Mon, 26 Oct 2009 00:10:57 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30534#comment-30538</link>
      <guid>http://forums.shopify.com/categories/2/posts/30534#comment-30538</guid>
      <description>&lt;p&gt;She means your product.liquid page not your css :)&lt;/p&gt;</description>
    </item>
    <item>
      <title>hana_nell commented</title>
      <author>hana_nell</author>
      <pubDate>Mon, 26 Oct 2009 00:32:51 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30534#comment-30539</link>
      <guid>http://forums.shopify.com/categories/2/posts/30534#comment-30539</guid>
      <description>&lt;p&gt;Whoops. Thanks for setting me straight!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&amp;lt;div id="product"&amp;gt;
  &amp;lt;div id="product-main"&amp;gt; {% for image in product.images %}
    {% if forloop.first %}
    &amp;lt;div id="prod-img"&amp;gt; &amp;lt;img src="{{ image | product_img_url: 'large'}}" alt="{{product.title}}" /&amp;gt; &amp;lt;/div&amp;gt;
    {% else %}
    &amp;lt;div class="prod-img-small fl"&amp;gt; &amp;lt;a href="{{ image | product_img_url: 'large' }}" rel="lightbox"&amp;gt; &amp;lt;img src="{{ image | product_img_url: 'small'}}" alt="{{product.title}}" /&amp;gt; &amp;lt;/a&amp;gt; &amp;lt;/div&amp;gt;
    {% endif %}
    {% endfor %} 
&amp;lt;/div&amp;gt;
&amp;lt;div id="variant-add"&amp;gt;
  &amp;lt;h2&amp;gt;{{ product.title }}&amp;lt;/h2&amp;gt;
&amp;lt;/div&amp;gt;
  &amp;lt;div id="description" class="textile"&amp;gt; {{ product.description }} &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;div id="variant-add"&amp;gt;
    &amp;lt;form action="/cart/add" method="post"&amp;gt;

    {% if product.variants.size == 1 %}

    &amp;lt;input name="id" value="{{ product.variants.first.id }}" type="hidden" /&amp;gt;

    {% else %}
    
      &amp;lt;select id="variants" name='id'&amp;gt;
        {% for variant in product.variants %}
          &amp;lt;option value="{{ variant.id }}"&amp;gt;{{ variant.title }} - {{ variant.price | money }}&amp;lt;/option&amp;gt;
        {% endfor %}
      &amp;lt;/select&amp;gt;

    {% endif %}

      &amp;lt;div class="addtocart"&amp;gt;{% if product.available == false %} &amp;lt;a href="&lt;a href="mailto:email@org.org"&gt;email@org.org&lt;/a&gt;?subject={{ product.title }}"&amp;gt;&amp;lt;img src="{{ 'soldout.gif' | asset_url }}" /&amp;gt;&amp;lt;/a&amp;gt;{% else %}         &amp;lt;input type="submit" name="add" value="Add to Cart" id="add" class="button" style="width:100px" src="asset_url" /&amp;gt; {% endif %} &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
  &amp;lt;/div&amp;gt;

      {% if product.variants.size == 1 %}

    &amp;lt;div id="price-field"&amp;gt;{{ product.price | money_with_currency }}&amp;lt;/div&amp;gt;

      {% else %}

   &amp;lt;div id="price-field"&amp;gt;&amp;lt;/div&amp;gt;

&amp;lt;script type="text/javascript"&amp;gt;
// &amp;lt;![CDATA[  
  // prototype callback for multi variants dropdown selector
  var selectCallback = function(variant, selector) {
    if (variant &amp;amp;&amp;amp; variant.available == true) {
      // selected a valid variant
      $('add').removeClassName('disabled'); // remove unavailable class from add-to-cart button
      $('add').disabled = false;           // reenable add-to-cart button
      $('price-field').innerHTML = Shopify.formatMoney(variant.price, "{{shop.money_with_currency_format}}");  // update price field
    } else {
      // variant doesn't exist
      $('add').addClassName('disabled');      // set add-to-cart button to unavailable class
      $('add').disabled = true;              // disable add-to-cart button      
      $('price-field').innerHTML = (variant) ? "Sold Out" : "Unavailable"; // update price-field message
    }
  };

  // initialize multi selector for product
  Event.observe(document, 'dom:loaded', function() {  
    new Shopify.OptionSelectors("variants", { product: {{ product | json }}, onVariantSelected: selectCallback }); 
  });
// ]]&amp;gt;
&amp;lt;/script&amp;gt;

     {% endif %}
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Mark Dunkley commented</title>
      <author>Mark Dunkley</author>
      <pubDate>Mon, 26 Oct 2009 02:12:34 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30534#comment-30540</link>
      <guid>http://forums.shopify.com/categories/2/posts/30534#comment-30540</guid>
      <description>&lt;p&gt;Hana, if you add this to your .css file all your product titles will appear italicized on the product page (and only on the product spage).&lt;/p&gt;
&lt;p&gt;
&lt;pre&gt;#variant-add h2 { font-style:italic }&lt;/pre&gt;
Whenever you see {{ product.titile }} this means that Shopify will output your product's title. So if you want to add italics to other pages you can either target using .css (which would be the best way to do it) or you open up all your liquid files that have {{ product.title }} and wrap them in &amp;lt;em&amp;gt; &amp;lt;/em&amp;gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>hana_nell commented</title>
      <author>hana_nell</author>
      <pubDate>Mon, 26 Oct 2009 21:18:46 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30534#comment-30553</link>
      <guid>http://forums.shopify.com/categories/2/posts/30534#comment-30553</guid>
      <description>&lt;p&gt;Hi Mark,&lt;/p&gt;
&lt;p&gt;What I'd like to do is selectively italicize the product titles. Some of them do not be italicized, while others are book titles and it would be great if they were italicized. Even better would be to be able to have both normal and italicized text in one title, e.g. "T-Shirt: &lt;em&gt;Style.&lt;/em&gt;" Is this possible?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Caroline Schnapp commented</title>
      <author>Caroline Schnapp</author>
      <pubDate>Mon, 26 Oct 2009 21:32:52 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30534#comment-30554</link>
      <guid>http://forums.shopify.com/categories/2/posts/30534#comment-30554</guid>
      <description>&lt;p&gt;Something &lt;em&gt;like&lt;/em&gt; this would do the trick:&lt;/p&gt;
&lt;pre&gt;&amp;lt;div id="variant-add"&amp;gt;&lt;br /&gt;  &amp;lt;h2{% if product.type == 'book' %} class="book"{% endif %}&amp;gt;{{ product.title }}&amp;lt;/h2&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;Then in the stylesheet:&lt;/p&gt;
&lt;pre&gt;#variant-add h2.book { font-style:italic }&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
    </item>
    <item>
      <title>hana_nell commented</title>
      <author>hana_nell</author>
      <pubDate>Thu, 29 Oct 2009 17:12:14 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30534#comment-30645</link>
      <guid>http://forums.shopify.com/categories/2/posts/30534#comment-30645</guid>
      <description>&lt;p&gt;Thanks for the ideas. So, is there no way to have both italics &lt;em&gt;and&lt;/em&gt; plain text in the same title?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Jamie commented</title>
      <author>Jamie</author>
      <pubDate>Thu, 29 Oct 2009 19:04:48 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30534#comment-30648</link>
      <guid>http://forums.shopify.com/categories/2/posts/30534#comment-30648</guid>
      <description>&lt;p&gt;Well the title field _used to_ take textile (like some other things I can think of, cough) but looks like that is no longer the case. looks like you have to put actual mark-up in that title box for this to work now. Makes for ugly titles in the back end but works for what you are trying to accomplish. [see screen]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
