Code: Select all
<meta name="description" content="{description}" />
Code: Select all
<meta name="description" content="{description}" />
Try this:oliver341 wrote:However, I'd like to hide this line altogether if I haven't entered anything in the page's Description box. Is this possible with an if statement?Code: Select all
<meta name="description" content="{description}" />
Code: Select all
{capture name="metadescription"}{description}{/capture}
{if $smarty.capture.metadescription ne ''}<meta name="description" content="{description}" />{/if}