Sign in

Custom Filds + html

  • This topic has 3 replies, 2 voices, and was last updated 1 month, 2 weeks ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8590
    Avatar photoinfrancer

    I added a Custom Filds – textarea.
    Inserting html/js code into it

    The output is

    <div class="faq" itemscope itemprop="mainEntity" itemtype="https://schema.org/Question">

    Can I get code in the output?

    #8591
    Avatar photoTomasz Dziuda

    Hi,

    Did you tried to wrap the custom field value into triple brackets instead of double brackets:

    {{{ variable }}}

    instead of:

     

    {{ variable }}

    In your theme?

     

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #8593
    Avatar photoinfrancer

    Hi,

    Did you tried to wrap the custom field value into triple brackets instead of double brackets:

    {{{ variable }}}

    instead of:

    {{ variable }}

    In your theme?

    No 🙁

    I use

    {{#if @config.post.displayBreadcrumb}}
    {{@config.post.displayBreadcrumb}}
    {{/if}}

    Only {{

    #8594
    Avatar photoinfrancer

    Thanks!

    {{

    =

    <div<

    {{{

    =

     

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.