Silka5 Posted January 20, 2015 Share Posted January 20, 2015 Bonjour, Je voudrais savoir si quelqu'un sait comment ajouter la balise H1 sur le nom du produit dans le fil d'ariane ? Merci à vous. <!-- Breadcrumb --> {if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if} <div class="breadcrumb"> <a href="{$base_dir}" title="{l s='Return to Home'}"><img src="{$img_dir}icon/home.gif" height="26" width="26" alt="{l s='Home'}" /></a> {if isset($path) AND $path} <span class="navigation-pipe" {if isset($category) && isset($category->id_category) && $category->id_category == 1}style="display:none;"{/if}>{$navigationPipe|escape:html:'UTF-8'}</span> {if !$path|strpos:'span'} <span class="navigation_page">{$path}</span> {else} {$path} {/if} {/if} </div> <!-- /Breadcrumb -- Link to comment Share on other sites More sharing options...
Alexandre Carette Posted January 20, 2015 Share Posted January 20, 2015 (edited) si tu veux que le H1 ne s'affiche que sur la page courante ce n'est le pas le tpl du breadcrumb qu'il faut modifier... mais plutôt la classe tools.php. Fais un override de la méthode "public static function getPath" en y ajoutant ton code '<h1>' '</h1>' vers la ligne 1020 Edited January 20, 2015 by Alexandre-KM (see edit history) 1 Link to comment Share on other sites More sharing options...
Silka5 Posted January 21, 2015 Author Share Posted January 21, 2015 Bonjour, Merci c'était bien cela. Link to comment Share on other sites More sharing options...
Alexandre Carette Posted January 21, 2015 Share Posted January 21, 2015 (edited) J'ai une question à te poser, est ce un véritable avantage SEO de mettre son H1 dans le breadcrum ? Edited January 21, 2015 by Alexandre-KM (see edit history) Link to comment Share on other sites More sharing options...
Silka5 Posted January 22, 2015 Author Share Posted January 22, 2015 Je pense que c'est une des optimisations possibles pour le on-page des fiches produits Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now