# Text Link

**URL:** <https://community.hubspot.com/t/text-link/29797>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [January 6, 2021, 5:09pm UTC](https://community.hubspot.com/t/text-link/29797 "2021-01-06T17:09:06Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![MNault](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mnault/32/9134_2.png) [@MNault](https://community.hubspot.com/u/MNault)\
**Post date:** [January 6, 2021, 5:09pm UTC](https://community.hubspot.com/t/text-link/29797/1 "2021-01-06T17:09:06Z")

</div>

This is the line from the body text of a blog feed module. I would like to add a link to the blog post from the words “Read More”.

\<p\>{{ post.post\_body|safe|striptags|truncate(130, true, ‘…READ MORE’) }}\</p\>

Would I plug in this line?

\<a href=“{{ post.absolute\_url }}”\>READ MORE\</a\>

Can someone help me? Or am I not providing enough of the code?

---

<div class="post-metadata">

**Author:** ![jonchim](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jonchim/32/88818_2.png) [@jonchim](https://community.hubspot.com/u/jonchim)\
**Post date:** [January 6, 2021, 9:42pm UTC](https://community.hubspot.com/t/text-link/29797/2 "2021-01-06T21:42:10Z")

</div>

Hey @MNault,

Yes I believe that line of code should work, you may have to remove the Read More part in the above \<p\> tags so it doesn’t get repeated.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 6, 2021, 9:46pm UTC](https://community.hubspot.com/t/text-link/29797/3 "2021-01-06T21:46:26Z")

</div>

Hey @MNault

Welcome to the Community!

That looks about right. Easiest thing to do is test it! Should be able to look at the live preview.

Not sure what the plans are for the READ MORE you have in the paragraph is. Either will need to remove it or add make it look like this

`<p>{{ content.post_body|safe|striptags|truncate(130, true, ' <a href="{{ content.absolute_url }}">...READ MORE</a>') }} </p>`

---

<div class="post-metadata">

**Author:** ![MNault](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mnault/32/9134_2.png) [@MNault](https://community.hubspot.com/u/MNault)\
**Post date:** [January 6, 2021, 9:57pm UTC](https://community.hubspot.com/t/text-link/29797/4 "2021-01-06T21:57:55Z")

</div>

Hmmm, I added that to the line of code and the entire blog body text disapeared. This is the live page, you can see the three blog posts. There are ellipsis at the end of each and we want to add READ MORE which then links the entire blog post.

[https://info.redpathcpas.com/construction-real-estate-and-engineering](https://info.redpathcpas.com/construction-real-estate-and-engineering)

---

<div class="post-metadata">

**Author:** ![jonchim](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jonchim/32/88818_2.png) [@jonchim](https://community.hubspot.com/u/jonchim)\
**Post date:** [January 6, 2021, 10:04pm UTC](https://community.hubspot.com/t/text-link/29797/5 "2021-01-06T22:04:14Z")

</div>

Interesting, can you copy the code you have that is within the “blog-item-post” class so we can take a closer look?

---

<div class="post-metadata">

**Author:** ![MNault](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mnault/32/9134_2.png) [@MNault](https://community.hubspot.com/u/MNault)\
**Post date:** [January 6, 2021, 10:05pm UTC](https://community.hubspot.com/t/text-link/29797/6 "2021-01-06T22:05:26Z")

</div>

\<div class=“blog-item-post”\>

\<h3\>\<a href=“{{ post.absolute\_url }}”\>{{ post.name }}\</a\>\</h3\>

\<div class=“blog-item-meta {{ ‘margin-bottom’ if post.post\_body }}”\>

\<span class=“author-icon”\>

{% icon

name=“{{ module.blog\_item\_style.icons.author.name }}”

style=“{{ module.blog\_item\_style.icons.author.type }}”

unicode=“{{ module.blog\_item\_style.icons.author.unicode }}”

%}

\</span\>

\<a href=“https://{{ post.parent\_blog.url\_base }}{{ ‘/author/’~post.blog\_author.slug }}” class=“blog-author”\>{{ post.blog\_author }}\</a\>

\<span class=“date-posted”\>

\<span class=“date-icon”\>

{% icon

name=“{{ module.blog\_item\_style.icons.date\_icon.name }}”

style=“{{ module.blog\_item\_style.icons.date\_icon.type }}”

unicode=“{{ module.blog\_item\_style.icons.date\_icon.unicode }}”

%}

\</span\>

{{ post.created|datetimeformat(“%B %e, %Y”) }}\</span\>

{% if module.blog\_list\_settings.tag\_style\_settings.show\_tag\_in\_blog\_feed %}

{% if post.topic\_list %}

\<p class=“hubspot-topic\_data”\>

{% for topic in post.topic\_list %}

\<a class=“topic-link” href=“{{ blog\_tag\_url(group.id, topic.slug) }}”\>{{ topic.name }}\</a\>

{% endfor %}

\</p\>

{% endif %}

{% endif %}

\</div\>

\<p\>{{ post.post\_body|safe|striptags|truncate(130, true, ‘…’) }}\</p\>

\</div\>

\</div\>

\</div\>

---

<div class="post-metadata">

**Author:** ![jonchim](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jonchim/32/88818_2.png) [@jonchim](https://community.hubspot.com/u/jonchim)\
**Post date:** [January 6, 2021, 10:09pm UTC](https://community.hubspot.com/t/text-link/29797/7 "2021-01-06T22:09:24Z")

</div>

Thanks, you should be able to just add that line like this right under post body preview

```lia-code-sample
 </div>
 <p>{{ post.post_body|safe|striptags|truncate(130, true, '...') }}</p>
 <a href="{{ post.absolute_url }}">Read More</a> 
 </div>

```

---

<div class="post-metadata">

**Author:** ![MNault](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mnault/32/9134_2.png) [@MNault](https://community.hubspot.com/u/MNault)\
**Post date:** [January 6, 2021, 10:22pm UTC](https://community.hubspot.com/t/text-link/29797/8 "2021-01-06T22:22:25Z")

</div>

Actually, I was hoping it would link to the appropriate full blog post but it just returns to the same page.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 6, 2021, 10:32pm UTC](https://community.hubspot.com/t/text-link/29797/9 "2021-01-06T22:32:06Z")

</div>

hey @MNault

Can you confirm that you updated this line

`<p>{{ post.post_body|safe|striptags|truncate(130, true, ' <a href="{{ content.absolute_url }}">...READ MORE</a>') }} </p>`

to make it be

`<p>{{ post.post_body|safe|striptags|truncate(130, true, ' <a href="{{ post.absolute_url }}">...READ MORE</a>') }} </p>`

---

<div class="post-metadata">

**Author:** ![MNault](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mnault/32/9134_2.png) [@MNault](https://community.hubspot.com/u/MNault)\
**Post date:** [January 6, 2021, 10:49pm UTC](https://community.hubspot.com/t/text-link/29797/10 "2021-01-06T22:49:23Z")

</div>

Ooops, sorry, I missed the second “post” - It works brilliantly now! THank you so much @dennisedson and @jonchim I appreciate this so much!!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 6, 2021, 10:11pm UTC](https://community.hubspot.com/t/text-link/29797/11 "2021-01-06T22:11:34Z")

</div>

If you were inputing my code snippet directly, replace **content** with **post** (apologies for that!)

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 6, 2021, 9:47pm UTC](https://community.hubspot.com/t/text-link/29797/12 "2021-01-06T21:47:00Z")

</div>

oops! @jonchim beat me to the punch!

---

<div class="post-metadata">

**Author:** ![jonchim](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jonchim/32/88818_2.png) [@jonchim](https://community.hubspot.com/u/jonchim)\
**Post date:** [January 6, 2021, 9:49pm UTC](https://community.hubspot.com/t/text-link/29797/13 "2021-01-06T21:49:34Z")

</div>

haha @dennisedson 😀 i like your solution more didn’t realize you can include the a tags in there altogether.

---

<div class="post-metadata">

**Author:** ![jonchim](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jonchim/32/88818_2.png) [@jonchim](https://community.hubspot.com/u/jonchim)\
**Post date:** [January 6, 2021, 10:12pm UTC](https://community.hubspot.com/t/text-link/29797/14 "2021-01-06T22:12:57Z")

</div>

@MNault, the code @dennisedson works as well didn’t see that content. but changing it to post. works saves a line of code!
