HomePage › Forums › Themes Support › Luxtower – Single Property WordPress Theme › I am selling TownHouses not Apartment. How to change the Category listing
- This topic has 3 replies, 2 voices, and was last updated 1 year, 10 months ago by Billy Nguyen.
-
AuthorPosts
-
June 8, 2022 at 8:41 am #24247raphaelmasariSupport Expired
Hi,
I am selling TownHouses not Apartment. How to change the Category listing ? To be reflect in the URL.
From https://demo2.pavothemes.com/luxtower/apartment/
to
https://demo2.pavothemes.com/luxtower/townhouse/
or
https://demo2.pavothemes.com/luxtower/villa/
or
https://demo2.pavothemes.com/luxtower/house/Thanks!
June 8, 2022 at 10:23 am #24283Hi you,
To change Apartment => your text, please add this custom code to file functions.php ( child-theme):
add_filter('luxtower_postype_property_labels', 'luxtower_postype_property_labels_custom'); function luxtower_postype_property_labels_custom(){ $labels = array( 'name' => __('Apartments', 'luxtower'), 'singular_name' => __('Apartment', 'luxtower'), 'add_new' => __('Add Apartment', 'luxtower'), 'add_new_item' => __('Add New Apartment', 'luxtower'), 'edit_item' => __('Edit Apartment', 'luxtower'), 'new_item' => __('New Apartment', 'luxtower'), 'all_items' => __('All Apartments', 'luxtower'), 'view_item' => __('View Apartment', 'luxtower'), 'search_items' => __('Search Apartments', 'luxtower'), 'not_found' => __('No Apartment found', 'luxtower'), 'not_found_in_trash' => __('No Apartment found in Trash', 'luxtower'), 'menu_name' => __('Apartments', 'luxtower'), ); return $labels; } add_filter('luxtower_property_custom_slug', 'luxtower_property_custom_slug'); function luxtower_property_custom_slug(){ return 'your-slug'; }
Change Apartment = your text./
June 8, 2022 at 3:57 pm #24297raphaelmasariSupport ExpiredThanks Billy, You are a star !
June 8, 2022 at 4:29 pm #24302You are welcome!
Let me know if you need to help and hope you will vote 5 stars for our theme.
Thanks./
-
AuthorPosts
You must be logged in to reply to this topic.