I wrote {$title} in smarty block but it is not displayed.
How should I do it?
Do you mean "Pages" or "Products" or both?
[attachment=12981:screenshot-www.cscarthost.com-2018-02-01-13-56-41.jpg]
Try to use the following code in your block:
{if $page_title} {$page_title} {else} {foreach from=$breadcrumbs item=i name="bkt"} {if $language_direction == 'rtl'} {if !$smarty.foreach.bkt.last}{if !$smarty.foreach.bkt.last && !$smarty.foreach.bkt.first} :: {/if}{$i.title|strip_tags}{/if} {else} {if !$smarty.foreach.bkt.first}{$i.title|strip_tags}{if !$smarty.foreach.bkt.last} :: {/if}{/if} {/if} {/foreach} {if !$skip_page_title && $location_data.title}{if $breadcrumbs|count > 1} - {/if}{$location_data.title}{/if} {/if}
Try to use the following code in your block:
{if $page_title} {$page_title} {else} {foreach from=$breadcrumbs item=i name="bkt"} {if $language_direction == 'rtl'} {if !$smarty.foreach.bkt.last}{if !$smarty.foreach.bkt.last && !$smarty.foreach.bkt.first} :: {/if}{$i.title|strip_tags}{/if} {else} {if !$smarty.foreach.bkt.first}{$i.title|strip_tags}{if !$smarty.foreach.bkt.last} :: {/if}{/if} {/if} {/foreach} {if !$skip_page_title && $location_data.title}{if $breadcrumbs|count > 1} - {/if}{$location_data.title}{/if} {/if}
You are welcome!