# How to remove the year from the date in LinkedIn Recommendations

**URL:** <https://community.elfsight.com/t/how-to-remove-the-year-from-the-date-in-linkedin-recommendations/141374>\
**Category:** Customization\
**Tags:** linkedin-recommend\
**Created:** [November 12, 2025, 12:37pm UTC](https://community.elfsight.com/t/how-to-remove-the-year-from-the-date-in-linkedin-recommendations/141374 "2025-11-12T12:37:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![John-Paul](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/john-paul/32/47647_2.png) [@John-Paul](https://community.elfsight.com/u/John-Paul)\
**Post date:** [November 12, 2025, 12:37pm UTC](https://community.elfsight.com/t/how-to-remove-the-year-from-the-date-in-linkedin-recommendations/141374/1 "2025-11-12T12:37:33Z")

</div>

Is there a CSS code to be able to hide the year of the date?

I want to show the date, but _ **only** _\*\* the day/month\*\*. **Not** the year.

 ![Screenshot 2025-11-12 at 12.35.40](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/e/3/e3879aa7b409ba575eb3cf7ebc7d35b49d62b8ed.png)

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [November 12, 2025, 1:59pm UTC](https://community.elfsight.com/t/how-to-remove-the-year-from-the-date-in-linkedin-recommendations/141374/3 "2025-11-12T13:59:55Z")

</div>

Hi there, @John-Paul 👋

We’ve removed the year from the date using this code in the **Custom CSS** field on the **Style** tab of your widget’s settings:

```auto
.es-review-info-date {
  position: relative;
}

.es-review-info-date:after {
  content: '';
  position: absolute;
  right:0;
  width: 32px;
  height: 100%;
  background-color: rgb(248, 248, 248);
}

.es-tooltip-container {
  display: none;
}

```

  

Please check your widget and let me know if it’s fine now 🙂

---

<div class="post-metadata">

**Author:** ![John-Paul](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/john-paul/32/47647_2.png) [@John-Paul](https://community.elfsight.com/u/John-Paul)\
**Post date:** [November 12, 2025, 5:46pm UTC](https://community.elfsight.com/t/how-to-remove-the-year-from-the-date-in-linkedin-recommendations/141374/4 "2025-11-12T17:46:48Z")

</div>

That seems to do the job fine, but one weird effect is that on the live page and on mobile too, the second digit is cropped slightly, even though in Elfsight it looks normal.

On this homepage: [https://www.theetiquettemethod.com/](https://www.theetiquettemethod.com/)

 ![Screenshot 2025-11-12 at 17.44.05](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/b/4/b4cb62e22a7db12fb09a4269eb98423fa1eb1e27.png)

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [November 12, 2025, 6:06pm UTC](https://community.elfsight.com/t/how-to-remove-the-year-from-the-date-in-linkedin-recommendations/141374/5 "2025-11-12T18:06:07Z")

</div>

Ah, I see!

Our devs will double-check this solution, and I’ll update you once it’s fixed 🙂

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [November 13, 2025, 7:50am UTC](https://community.elfsight.com/t/how-to-remove-the-year-from-the-date-in-linkedin-recommendations/141374/6 "2025-11-13T07:50:08Z")

</div>

We’ve slightly adjusted the code:

```auto
.es-review-info-date {
  position: relative;
}

.es-review-info-date:after {
  content: '';
  position: absolute;
  right: -2px;
  width: 32px;
  height: 100%;
  background-color: rgb(248, 248, 248);
}

.es-tooltip-container {
  display: none;
}

```

In the configurator, there will be a comma displayed after the date, but on your website everything will look fine.

Please check it out and let me know if you like the result 🙂

---

<div class="post-metadata">

**Author:** ![John-Paul](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/john-paul/32/47647_2.png) [@John-Paul](https://community.elfsight.com/u/John-Paul)\
**Post date:** [November 13, 2025, 10:11am UTC](https://community.elfsight.com/t/how-to-remove-the-year-from-the-date-in-linkedin-recommendations/141374/7 "2025-11-13T10:11:36Z")

</div>

Same sort of problem persists for some reason 😕

Here’s the Elfsight view vs the website view.

 ![Screenshot 2025-11-13 at 10.10.51](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/f/8/f804c1cc13ac33d8c450086b9debc416ce45147a.png)

 ![Screenshot 2025-11-13 at 10.10.26](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/a/6/a6ec140856532a3c4ac96db53f2b292d9a95705e.png)

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [November 13, 2025, 3:11pm UTC](https://community.elfsight.com/t/how-to-remove-the-year-from-the-date-in-linkedin-recommendations/141374/8 "2025-11-13T15:11:41Z")

</div>

We’ve added one more CSS code:

```auto
.swiper-slide:last-child .es-review-info-date:after {
  right: 0px;
}

```

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/1/9/19fdb0385fc79b1d3d0ac6fea851300e3441b699.jpeg)

  

Could you please check it and let me know how it looks on your end now?

---

<div class="post-metadata">

**Author:** ![John-Paul](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/john-paul/32/47647_2.png) [@John-Paul](https://community.elfsight.com/u/John-Paul)\
**Post date:** [November 13, 2025, 3:22pm UTC](https://community.elfsight.com/t/how-to-remove-the-year-from-the-date-in-linkedin-recommendations/141374/9 "2025-11-13T15:22:15Z")

</div>

Works well now! Thank you so much.

Regards,

John-Paul

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [November 13, 2025, 3:27pm UTC](https://community.elfsight.com/t/how-to-remove-the-year-from-the-date-in-linkedin-recommendations/141374/10 "2025-11-13T15:27:32Z")

</div>

It’s my pleasure 😉
