How do I disable a code line from executing?

8 Comments

  • Andrew J
    Comment actions Permalink

    What code do you mean, and what are you wanting to achieve?

    0
  • Sharma
    Comment actions Permalink

    For example - In our dynamic content, I have the following. Please look at the bold sections.

    I want the "Current URL" to be disabled but don't want to remove it.

    <!-- =BEGIN CATEGORY 3 AREA= -->

    <div id="category_wrapper" style="float:left; overflow: auto; width:750px;">
    <div id="cat3" style="float:left; overflow: hidden; width:45%; height: 203px; margin-bottom: 25px; margin-right: 25px;">

    <div id="c3im" style="float:left; width:25%; height: 100px; margin-top: 10%; ">
    <a href="/hc/en-us/categories/200569228"><img src="https://s3-us-west-2.amazonaws.com/cs-images.real.com/Site+Icons/Support_desktop_icon_blue_100px.png" height="75px" alt="REALPLAYER" align="top"></a>
    </div>
    <div id="c3tx" style="float:right; width:70%; height: 125px; margin-top: 10%; border-left:solid #0fa7ff; border-width: 2px;">
    <div id="cat3_text" style="padding-left: 10px">
    (Current URL) <h3> <a style="color:#0fa7ff; text-decoration: none; " href="/hc/en-us/categories/200569228">

    (New URL) <h3> <a style="color:#0fa7ff; text-decoration: none; " href="/hc/en-us/categories/200569228">
    <!-- =EDIT AREA BEGIN: CATEGORY NAME= -->

     

     

    0
  • Andrew J
    Comment actions Permalink

    Can you just comment out the code as html?
    Not sure if example will show, cannot select code block on mobile...
    Eg.

    `<!-- disabled content -->`

    0
  • Andrew J
    Comment actions Permalink

    Without the backticks

    0
  • Sharma
    Comment actions Permalink

    I don't know what to say. All of yesterday, it didn't work for me. The comments showed up on the page as text. Now, it seems to be working. I will try with my homepage.hbs now. Hopefully it magically helps today. :)

    Thanks,Andrew!

    0
  • Sharma
    Comment actions Permalink

    Unfortunately, with any of the hbs pages, the HTML comment doesn't work. So was wondering if there is a different code for this.

    0
  • Dan Cooper
    Comment actions Permalink

    If HTML Comments aren't working you can try the code comments as well that are documented here in the Help Center Templates docs

    {{!--
      don't render the name for now
      {{author.name}}
    --}}
    0
  • Sharma
    Comment actions Permalink

    Perfect! Thanks a ton, Dan! I will bookmark this page.

    0

Please sign in to leave a comment.

Powered by Zendesk