Answers.Body: <p>Check out &quot;Dynamic Content&quot; in the &quot;Advanced Usage&quot; section of the Blitz docs:
  <a href="https://putyourlightson.com/plugins/blitz#dynamic-content" rel="nofollow noreferrer">https://putyourlightson.com/plugins/blitz#dynamic-content</a></p>
  <p>Thus can be done with:</p>
  <pre><code>{{ craft.blitz.getTemplate('/template/name', { elementId: entry.id }) }}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-06T11:52:54.697Z
Answers.Text: Perfect. Thanks for this. I'll get to creating a partial with this in.
Answers.UserDisplayName: JMKelley
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-06T06:31:35.773Z
Answers.LastActivityDate: 2020-10-06T11:39:31.107Z
Answers.LastEditDate: 2020-10-06T11:39:31.107Z
Answers.UserDisplayName: Matthias Redl-Mann
Body: <p>I have a Blitz Cache but the only bit of dynamic data on the page is a &quot;Follow&quot; button which changes depending on if you're following this entry. Looking at their docs, I don't see a way of not caching a certain section or button?</p>
  <pre><code>{% if craft.follow.check({ elementId: entry.id }) %}
      &lt;span class=&quot;material-icons mr-2 md-18&quot;&gt;favorite&lt;/span&gt;Remove Brand&lt;/a&gt;
  {% else %}
      &lt;span class=&quot;material-icons mr-2 md-18&quot;&gt;favorite_border&lt;/span&gt;Save Brand&lt;/a&gt;
  {% endif %}
  </code></pre>
  <p>Is it possible to still make this dynamic?</p>
  
Tags: <templating><plugin-blitz>
Title: Blitz Cache dynamic button
ThreadText: # Blitz Cache dynamic button
  
  (Asked by: username_0 on 2020-10-04)
  
  I have a Blitz Cache but the only bit of dynamic data on the page is a "Follow" button which changes depending on if you're following this entry. Looking at their docs, I don't see a way of not caching a certain section or button?
  
  ```
  {% if craft.follow.check({ elementId: entry.id }) %}
      <span class="material-icons mr-2 md-18">favorite</span>Remove Brand</a>
  {% else %}
      <span class="material-icons mr-2 md-18">favorite_border</span>Save Brand</a>
  {% endif %}
  
  ```
  
  Is it possible to still make this dynamic?
  
  **Tags:** templating, plugin-blitz
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-10-06. Score: 3 | Accepted answer
  
  Check out "Dynamic Content" in the "Advanced Usage" section of the Blitz docs:
  <https://putyourlightson.com/plugins/blitz#dynamic-content>
  
  Thus can be done with:
  
  ```
  {{ craft.blitz.getTemplate('/template/name', { elementId: entry.id }) }}
  
  ```
  
  > **Comments:**
  > **username_0**: Perfect. Thanks for this. I'll get to creating a partial with this in.  
  
  ---
  
  