Uncategorized

Prestashop: Add css to affect only one page.

 

 

{if $page_name=="index"}
   {literal}
   <style>
   #page {
   background-color: #FFFFFF;
   border-top-style: solid;
   border-top-width: 0;
   }
   </style>
   {/literal}
{/if}


https://www.prestashop.com/forums/topic/171541-css-for-home-only/


Or for example, for product page I use: 

{if isset($product->id)}
			<link rel="canonical" href="{$link->getProductLink($product)}" />
			<link rel="stylesheet" href="/themes/default-bootstrap/css/global_criticalpath.css" type="text/css" media="all" />
		{*	<link rel="stylesheet" href="/themes/default-bootstrap/css/global_criticalpath_rev1.css" type="text/css" media="all" />*}
		{/if}
Attachments:

Leave a Reply

Your email address will not be published. Required fields are marked *