# How to remove the /night or /day on the listing

**URL:** <https://community.hivepress.io/t/how-to-remove-the-night-or-day-on-the-listing/17027>\
**Category:** Bookings\
**Created:** [November 8, 2025, 4:04pm UTC](https://community.hivepress.io/t/how-to-remove-the-night-or-day-on-the-listing/17027 "2025-11-08T16:04:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mau](https://community.hivepress.io/user_avatar/community.hivepress.io/mau/32/4009_2.png) [@Mau](https://community.hivepress.io/u/Mau)\
**Post date:** [November 8, 2025, 4:04pm UTC](https://community.hivepress.io/t/how-to-remove-the-night-or-day-on-the-listing/17027/1 "2025-11-08T16:04:51Z")

</div>

how do Iremove the /night or /day on my listings. I sell retreats, prices should be and are per retreats not per day or night. After I install the Bookings Extension, this shows on every listing, which is not correct. See image. I want to eliminate that.

Thanks

 ![Captura de pantalla 2025-11-08 a las 16.43.09](https://community.hivepress.io/uploads/default/original/2X/b/bb3d8215ccf5b39ed78650886d04ccaf535188a9.jpeg)

---

<div class="post-metadata">

**Author:** ![ChrisB](https://community.hivepress.io/user_avatar/community.hivepress.io/chrisb/32/14185_2.png) [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Post date:** [November 8, 2025, 4:19pm UTC](https://community.hivepress.io/t/how-to-remove-the-night-or-day-on-the-listing/17027/2 "2025-11-08T16:19:17Z")

</div>

Hi @Mau,

You can customise the /night text using the Loco Translate plugin.

> **[How to translate HivePress - HivePress Help Center](https://help.hivepress.io/article/13-how-to-translate-hivepress)**
>
> Please follow the screencast below to translate the HivePress strings using Loco Translate plugin. The screencast shows the translation of the core plugin, but

Follow the example given in the video linked above, but inside Loco Translate, select the HivePress Bookings plugin. Be careful to select the same set-up options shown in the video to ensure your custom text is displayed on the front end. Then search for string you’d like to change “night” and in the box below you can enter your preferred text. Like so:

 ![image](https://community.hivepress.io/uploads/default/original/2X/a/a722263078f41d27f9935ff8f1f81b8e12cfd3ac.png)

I hope this helps!

Cheers,  
Chris ✌

---

<div class="post-metadata">

**Author:** ![Mau](https://community.hivepress.io/user_avatar/community.hivepress.io/mau/32/4009_2.png) [@Mau](https://community.hivepress.io/u/Mau)\
**Post date:** [November 8, 2025, 4:31pm UTC](https://community.hivepress.io/t/how-to-remove-the-night-or-day-on-the-listing/17027/3 "2025-11-08T16:31:13Z")

</div>

Hi ChrisB,

thanks for you replay.  
I what I meant was, I don’t want anything to show, but just the price. Is there a CSS way not to show it?

Thanks

---

<div class="post-metadata">

**Author:** ![ChrisB](https://community.hivepress.io/user_avatar/community.hivepress.io/chrisb/32/14185_2.png) [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Post date:** [November 8, 2025, 4:50pm UTC](https://community.hivepress.io/t/how-to-remove-the-night-or-day-on-the-listing/17027/4 "2025-11-08T16:50:48Z")

</div>

Hi @Mau,

You can try this PHP snippet to remove the / night part:

```auto
<?php
add_filter(
	'hivepress/v1/models/listing/attributes',
	function( $attributes ) {
		if ( isset( $attributes['price'] ) ) {
			$attributes['price']['display_format'] = '%value%';
		}

		return $attributes;
	},
	1000
);

```

Cheers,  
Chris ✌

---

<div class="post-metadata">

**Author:** ![Mau](https://community.hivepress.io/user_avatar/community.hivepress.io/mau/32/4009_2.png) [@Mau](https://community.hivepress.io/u/Mau)\
**Post date:** [November 8, 2025, 5:19pm UTC](https://community.hivepress.io/t/how-to-remove-the-night-or-day-on-the-listing/17027/5 "2025-11-08T17:19:49Z")

</div>

appologies my ignorance, but where do I add it, to which file?

---

<div class="post-metadata">

**Author:** ![ChrisB](https://community.hivepress.io/user_avatar/community.hivepress.io/chrisb/32/14185_2.png) [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Post date:** [November 8, 2025, 6:36pm UTC](https://community.hivepress.io/t/how-to-remove-the-night-or-day-on-the-listing/17027/6 "2025-11-08T18:36:57Z")

</div>

Hi @Mau,

See this article on how to add each type of snippet:

> **[How to add custom code snippets - HivePress Help Center](https://help.hivepress.io/article/23-how-to-add-custom-code-snippets)**
>
> Adding PHP snippets Please try using the Code Snippets plugin for adding and managing custom PHP code snippets. Adding CSS snippets You can add custom CSS snipp

Basically, use [this plugin](https://wordpress.org/plugins/code-snippets/) to add the code snippet above.

Note: when you’re entering a PHP snippet in the Code Snippets plugin; you don’t need to add “\<?php” at the beginning of the snippet, as the plugin does this for you.

There’s other ways to add the snippet, but this approach is easiest for non-coders, and makes it easy to undo or update in the future.

Cheers,  
Chris ✌

---

<div class="post-metadata">

**Author:** ![Mau](https://community.hivepress.io/user_avatar/community.hivepress.io/mau/32/4009_2.png) [@Mau](https://community.hivepress.io/u/Mau)\
**Post date:** [November 9, 2025, 2:17am UTC](https://community.hivepress.io/t/how-to-remove-the-night-or-day-on-the-listing/17027/7 "2025-11-09T02:17:16Z")

</div>

hi, thanks. I tried it but didn’t work. can’t understand why

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [November 10, 2025, 12:51pm UTC](https://community.hivepress.io/t/how-to-remove-the-night-or-day-on-the-listing/17027/8 "2025-11-10T12:51:38Z")

</div>

Hi,

Please try this [code snippet](https://gist.github.com/hivepress/da2e25219ed47ede2a92f1090303c44d). Keep only “%value%” and remove “/ night” part.

This one should do the trick.

P.S. Please note that we have to move this topic to the Bookings forum category. Since it’s related to a premium extension, the forum category is restricted — please add the license key to the account settings or consider renewing support if you still need assistance related to the premium themes or extensions [Renew Support | HivePress  
 ](https://hivepress.io/renew-support)

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [December 10, 2025, 12:53pm UTC](https://community.hivepress.io/t/how-to-remove-the-night-or-day-on-the-listing/17027/10 "2025-12-10T12:53:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
