Including site logo in auto nav

Permalink
Hello

I wanted to include site logo in auto nav as I don't want a separate block for logo.

Concrete 5.7.5.3
website- traceink.com

Thanks in advance

View Replies:
Prachir replied on at Permalink Reply
I forgot to tell that I am new to concrete 5 and coding. After trying all that I can, searching everywhere, I couldn't find a solution to above mentioned problem. My one attempt almost created a error.

Thanks in advance
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi Prachir,

To include an image in the Auto-Nav block, you will need to create a custom block template.

In the custom template you can include the existing link and image that you are currently using.
<a href="http://traceink.com/">
    <img src="/application/files/1814/5295/2915/Untitled-1f.png" alt="Untitled-1f.png" width="90" height="90" class="ccm-image-block img-responsive bID-1881">
</a>


This explains how to apply the custom block template:
http://documentation.concrete5.org/editors/in-page-editing/block-ar...

This explains how to create a custom block template:
http://documentation.concrete5.org/developers/working-with-blocks/w...
Prachir replied on at Permalink Reply 1 Attachment
Thank you sir.

I followed all the steps but now I am receiving following error after creating separate template
syntax error, unexpected '<'

I am attaching the screenshot

Thanks in advance
MrKDilkington replied on at Permalink Reply
MrKDilkington
@Prachir

Did you paste the link and image tag directly into the PHP file?

If so, this is causing the error. They need to be displayed using echo.
echo '<a href="http://traceink.com/"><img src="/application/files/1814/5295/2915/Untitled-1f.png" alt="Untitled-1f.png" width="90" height="90" class="ccm-image-block img-responsive bID-1881"></a>';
Prachir replied on at Permalink Reply
Thank you very much sir
it is working fine now