# Changing location of the "Opening Hours" block

**URL:** <https://community.hivepress.io/t/changing-location-of-the-opening-hours-block/107>\
**Category:** Opening Hours\
**Tags:** opening-hours\
**Created:** [May 14, 2022, 10:52pm UTC](https://community.hivepress.io/t/changing-location-of-the-opening-hours-block/107 "2022-05-14T22:52:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rachelle](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@Rachelle](https://community.hivepress.io/u/Rachelle)\
**Post date:** [May 14, 2022, 10:52pm UTC](https://community.hivepress.io/t/changing-location-of-the-opening-hours-block/107/1 "2022-05-14T22:52:24Z")

</div>

Hello - with the RentalHive, I’ve installed the Opening Hours extension. On the listing page, the hours of operation appear on the right-hand side of the page between the booking module and above the host module.

Is there a way to move the hours of operation information above the booking module so it shows up between the primary attributes block and the booking block?

OR

To have it be moved into the left-hand column of the page (so it’s displayed below the secondary attribute block)?

Thanks so much! I’m so grateful for having found this theme!!

---

<div class="post-metadata">

**Author:** ![yevhen](https://community.hivepress.io/user_avatar/community.hivepress.io/yevhen/32/23_2.png) [@yevhen](https://community.hivepress.io/u/yevhen)\
**Post date:** [May 15, 2022, 8:52am UTC](https://community.hivepress.io/t/changing-location-of-the-opening-hours-block/107/2 "2022-05-15T08:52:57Z")

</div>

Thank you for your feedback. We are glad that it is useful for you

Please try this PHP snippet to show up between the primary attributes block and the booking block

```auto
add_filter(
	'hivepress/v1/templates/listing_view_page',
	function ($template){
		
		return hivepress()->helper->merge_trees(
				$template,
				[
					'blocks' => [
						'listing_opening_hours' => [
						'_order' => 15,
					],
					],
				]
			);
	},
	1000
);

```

Please try this PHP snippet to show it below the secondary attribute block

```auto
add_filter(
	'hivepress/v1/templates/listing_view_page',
	function ($template){
		
		return hivepress()->helper->merge_trees(
				$template,
				[
					'blocks' => [
						'page_sidebar' => [
							'blocks' => [
								'listing_opening_hours' => [
									'type' => 'content',
								],
							],
						],
						
						'page_content' => [
							'blocks' => [
								'custom_listing_opening_hours' => [
									'type' => 'opening_hours',
									'model' => 'listing',
									'_order' => 55,
								],
							],
 						],
					]
				]
			);
	},
	1000
);

```

---

<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:** [June 14, 2022, 8:53am UTC](https://community.hivepress.io/t/changing-location-of-the-opening-hours-block/107/3 "2022-06-14T08:53:10Z")

</div>

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