H1 Logo Image

Hello,

I like to test if my seo becomes better when i place my logo between h1 tags. Now i create this code, but with this code two logo are showed. Can somebody tell me what i'm doing wrong? I only want the h1 tags on my homepage / index page.

{$logos.theme.image.alt}{$logos.theme.image.alt}

{$logos.theme.image.alt}{$logos.theme.image.alt}

Hello

{if $smarty.request.dispatch == "index.index"}

{* in h1 *}

{else}

{* normal *}

{/if}

Best regards

Robert

Thank you very much!

Hello,

I like to test if my seo becomes better when i place my logo between h1 tags. Now i create this code, but with this code two logo are showed. Can somebody tell me what i'm doing wrong? I only want the h1 tags on my homepage / index page.

{$logos.theme.image.alt}{$logos.theme.image.alt}

{$logos.theme.image.alt}{$logos.theme.image.alt}

This solution should work as well with better performance.

{if $runtime.controller == 'index' && $runtime.mode == 'index'}

{* in h1 *}

{else}

{* normal *}

{/if}

Why do you think it will perform better? Both are memory references.

Why do you think it will perform better? Both are memory references.

Yes, you are correct.