Print shortcode as code

How can I print a shortcode in a content file as a code? when I try to print it, it’s calling this shortcode instead of printing it as a code block.

I have tried this:

{{< image src="images/favicon.png" alt="alter-text" >}}

but it’s calling this image shortcode.

Add it as a comment inside the code block. That will actually print out the shortcode text instead of evaluating it. E.g.

{{</* image src="images/favicon.png" alt="alter-text" */>}}
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.