# Blog post page

**URL:** <https://community.hubspot.com/t/blog-post-page/68992>\
**Category:** CMS Development\
**Tags:** starter\
**Created:** [November 10, 2022, 10:30am UTC](https://community.hubspot.com/t/blog-post-page/68992 "2022-11-10T10:30:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![OksanaR](https://avatars.discourse-cdn.com/v4/letter/o/77aa72/32.png) [@OksanaR](https://community.hubspot.com/u/OksanaR)\
**Post date:** [November 10, 2022, 10:30am UTC](https://community.hubspot.com/t/blog-post-page/68992/1 "2022-11-10T10:30:27Z")

</div>

Hi guys!  
I need to show or hide the quote section in my blog post template.  
I did this using the use\_the\_quote\_section boolean field in my Quote Module Optional.  
So I either show or don’t show this block.  
But I had such a problem that when I do not show this block, I have unnecessary blocks in the layout.  
Maybe I’m doing something wrong and it can be done in another way? Is it still possible to set the condition itself (to show or not to show) in the post template?

 ![OksanaR_1-1668074346443.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/0/00bd0b5200c858df5997e81d9a5f4d0e9a374dc3.png)

 ![OksanaR_2-1668074404947.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/0/100a7e5128551a56c08baed29ae89f2fa91b965e.jpeg)

 ![OksanaR_4-1668075409113.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/f/f8615024b143818289f50841e0a48d7dc102dae7.png)

---

<div class="post-metadata">

**Author:** ![febi\_angiosty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/febi_angiosty/32/72518_2.png) [@febi\_angiosty](https://community.hubspot.com/u/febi_angiosty)\
**Post date:** [November 10, 2022, 10:53am UTC](https://community.hubspot.com/t/blog-post-page/68992/2 "2022-11-10T10:53:24Z")

</div>

CMIIW, I assume you use module option to show or hide with boolean value.  
The component that you highlighted is produced by this code (in the blog-post.html):

![FPAngiosty_0-1668077233997.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/c/c9341f02793daf9154a582943894fedff3a3be3c.png)

Now, you hide and show in this only:

![FPAngiosty_1-1668077313445.png](https://d2qpr2jzcazej7.cloudfront.net/optimized/3X/9/a/9a1299af353817f2614aab963ab3b6328c61837f_2_690x75.png)

Solution you can do:  
1. Delete module above if it’s not used anymore  
2. bring module above into your module.

---

<div class="post-metadata">

**Author:** ![OksanaR](https://avatars.discourse-cdn.com/v4/letter/o/77aa72/32.png) [@OksanaR](https://community.hubspot.com/u/OksanaR)\
**Post date:** [November 10, 2022, 11:11am UTC](https://community.hubspot.com/t/blog-post-page/68992/3 "2022-11-10T11:11:27Z")

</div>

[@febi\_angiosty](https://community.hubspot.com/t5/user/viewprofilepage/user-id/474960)

I can’t remove this module yet because other pages are using it. But even if I do this, the problem with the remaining blocks remains, but these blocks will already be in the Quote Module Optional  
{% module “module\_16207352531104” path=“/landing-theme/modules/Quote Module”, label=“Quote Module” %}

And I conduct testing on my page using this module  
{% module “module\_166807518218723” path=“/landing-theme/modules/Quote Module Optional”, label=“Quote Module Optional” %}  
I need to know if it is somehow possible to optionally show or not show these selected blocks in the screenshot

 ![OksanaR_0-1668078619539.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/77adb8b6b932592d4a816306256bf61c289e19a0.png)

---

<div class="post-metadata">

**Author:** ![febi\_angiosty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/febi_angiosty/32/72518_2.png) [@febi\_angiosty](https://community.hubspot.com/u/febi_angiosty)\
**Post date:** [November 10, 2022, 11:57am UTC](https://community.hubspot.com/t/blog-post-page/68992/4 "2022-11-10T11:57:52Z")

</div>

I see different screenshot now.  
This is what I saw before:

 ![FPAngiosty_0-1668081035259.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/d/7d98d3ab84ec3f2a7bf3316b2c5a0df171ab54b7.png)

Now:

 ![FPAngiosty_1-1668081079965.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/f/1fc5bdc127f8c1fcfb7b63c8f79ede230044cbee.png)

What the code that you are using?

---

<div class="post-metadata">

**Author:** ![OksanaR](https://avatars.discourse-cdn.com/v4/letter/o/77aa72/32.png) [@OksanaR](https://community.hubspot.com/u/OksanaR)\
**Post date:** [November 10, 2022, 1:12pm UTC](https://community.hubspot.com/t/blog-post-page/68992/5 "2022-11-10T13:12:16Z")

</div>

[@febi\_angiosty](https://community.hubspot.com/t5/user/viewprofilepage/user-id/474960)  
I use both))))  
I just deleted one module so as not to confuse you and formulated my question again.  
In the first screenshot, the second module is commented out, so it is not displayed on my page.  
I do this so as not to break the page on the production site.

---

<div class="post-metadata">

**Author:** ![febi\_angiosty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/febi_angiosty/32/72518_2.png) [@febi\_angiosty](https://community.hubspot.com/u/febi_angiosty)\
**Post date:** [November 10, 2022, 12:14pm UTC](https://community.hubspot.com/t/blog-post-page/68992/6 "2022-11-10T12:14:05Z")

</div>

I think I assume that you know about what you will do with Quote Module.  
I’ll focus to Quote Module Optional. So, yes you need to delete that code that you highlighted into the module.  
I’ll use this code:

 ![FPAngiosty_0-1668081875487.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/2/e28fe90c475f29215542019a9f88accea2f25fc6.png)

file: Quote Module Optional  
Do this:

```lia-code-sample
{% if module.use_the_quote_section %}
<section class="blog-post__quote"> 
...........

</section
{% endif %}

```

and I see that your variable use\_the\_quote\_section is not a boolean but it’s a “choice”

![FPAngiosty_1-1668082385262.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/b/b19ef738b0c8a27569d88455df1c655e07283167.png)

You need to change it into this:

 ![FPAngiosty_2-1668082428255.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/e/ce5f9da88352c0552da31344b3fedc90e8776457.png)

**Additional** : if you want use “Choice”

```lia-code-sample
{% if module.use_the_quote_section =='true' %}
<section ........

</section>
{% endif %}​

```

note: I assume your value is true and false. you can change it based on your value  
Hope my explanation is good enough. Hihihi

---

<div class="post-metadata">

**Author:** ![OksanaR](https://avatars.discourse-cdn.com/v4/letter/o/77aa72/32.png) [@OksanaR](https://community.hubspot.com/u/OksanaR)\
**Post date:** [November 10, 2022, 2:00pm UTC](https://community.hubspot.com/t/blog-post-page/68992/7 "2022-11-10T14:00:15Z")

</div>

[@febi\_angiosty](https://community.hubspot.com/t5/user/viewprofilepage/user-id/474960)  
Thank you very much for your patience, I’m new to hubspot))  
it worked!!! I moved all the containers to my module and left only the import of the module itself in the template. Now that I see it, the answer is so obvious))

---

<div class="post-metadata">

**Author:** ![febi\_angiosty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/febi_angiosty/32/72518_2.png) [@febi\_angiosty](https://community.hubspot.com/u/febi_angiosty)\
**Post date:** [November 10, 2022, 2:15pm UTC](https://community.hubspot.com/t/blog-post-page/68992/8 "2022-11-10T14:15:45Z")

</div>

Glad to hear that. You are welcome. 🙂
