Skip to content

Instantly share code, notes, and snippets.

@luizventurote
Created March 2, 2018 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luizventurote/cae1336cbc0d15903e7e0e6726ec13ea to your computer and use it in GitHub Desktop.
Save luizventurote/cae1336cbc0d15903e7e0e6726ec13ea to your computer and use it in GitHub Desktop.
Add head text by on a CMS page - Magento 1
<reference name="head">
<block type="core/text" name="custom_css">
<action method="setText">
<text><![CDATA[
<style type="text/css">
.fs-wrapper div.fs-text-container { background-color: rgba(255, 255, 255, 0.85); }.fs-wrapper div.fs-text-container * { color: rgb(225, 23, 131); }.fs-wrapper div.fs-text-container > .fs-entry-date { display: none; }.fs-wrapper div.fs-text-container > .fs-service-icon { display: block; }.fs-wrapper div.fs-text-container .fs-entry-title { display: none; }div.fs-has-links { text-indent: -9999px; line-height: 0; position: static;font-family: Helvetica Neue, Helvetica, Arial, sans-serif; letter-spacing: 1px; font-size: 8pt; font-weight: 500; } .fs-has-links::after { padding: 5px 8px; background-color: rgb(225, 23, 131); color: rgba(255, 255, 255, 0.85); content: "SHOP IT"; text-indent: 0; display: block; font-size: 10pt; line-height: initial; margin: 10px; }.fs-wrapper div.fs-text-container .fs-entry-title { font-weight: normal; }.fs-wrapper div.fs-text-container .fs-entry-title { font-style: italic; }.fs-wrapper div.fs-detail-title { font-style: italic; }.fs-wrapper div.fs-text-container .fs-entry-title { font-family: Times New Roman, serif; }.fs-wrapper div.fs-detail-title { font-family: Times New Roman, serif; }
</style> ]]>
</text>
</action>
</block>
</reference>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment