Community Forums › Forums › Archived Forums › Design Tips and Tricks › AgentPress – "Property Details" for UK! Please Help
Tagged: Agentpress
- This topic has 3 replies, 2 voices, and was last updated 12 years, 6 months ago by
havsingh.
-
AuthorPosts
-
July 10, 2013 at 4:38 am #50060
havsingh
MemberHi all,
There was another thread about this, but i am not sure if it was resolved in there, and I am asking for something for a bit more specific.
The current AgentPress theme is designed for the US. I am based in the UK, so a few things like below need to be changed. How would I do this?
"State" > "County"
"Zip" > "Postcode"
"MLS" > "Ref Number"I would also like to get rid of "Square Feet" and "Basement" appearing in my listings.
Any help on where I find these fields would be greatly appreciated.
Thank you in advance 🙂
http://appletonestates.co.uk/listings/wilbury-avenue-sutton-sm2/July 10, 2013 at 8:17 am #50098havsingh
Memberok, solved, its in the manual.
July 10, 2013 at 8:18 am #50099Stewart
MemberHi,
What you will need to do is change a few lines of code in your functions.php file.
Open the functions.php and look for the following on around line 67:
/** * Filter the property details array. * */ function agentpress_property_details_filter( $details ) { $details['col1'] = array( __( 'Price:', 'apl' ) => '_listing_price', __( 'Address:', 'apl' ) => '_listing_address', __( 'City:', 'apl' ) => '_listing_city', __( 'State:', 'apl' ) => '_listing_state', __( 'Zip:', 'apl' ) => '_listing_zip' ); $details['col2'] = array( __( 'MLS #:', 'apl' ) => '_listing_mls', __( 'Square Feet:', 'apl' ) => '_listing_sqft', __( 'Bedrooms:', 'apl' ) => '_listing_bedrooms', __( 'Bathrooms:', 'apl' ) => '_listing_bathrooms', __( 'Basement:', 'apl' ) => '_listing_basement' ); return $details; }Now you can change it to something like this:
/** * Filter the property details array. * */ function agentpress_property_details_filter( $details ) { $details['col1'] = array( __( 'Price:', 'apl' ) => '_listing_price', __( 'Address:', 'apl' ) => '_listing_address', __( 'City:', 'apl' ) => '_listing_city', __( 'County:', 'apl' ) => '_listing_state', __( 'Postcode:', 'apl' ) => '_listing_zip' ); $details['col2'] = array( __( 'Ref Number #:', 'apl' ) => '_listing_mls', // __( 'Square Feet:', 'apl' ) => '_listing_sqft', __( 'Bedrooms:', 'apl' ) => '_listing_bedrooms', __( 'Bathrooms:', 'apl' ) => '_listing_bathrooms' // __( 'Basement:', 'apl' ) => '_listing_basement' ); return $details; }To change any of the others just change the wording example:
__( 'City:', 'apl' )
to
__( 'Town:', 'apl' )
Hope this helps
Stewart
WordPress Developer – Need help upgrading to Genesis 2.0? – My Blog
Follow me on TwitterJuly 12, 2013 at 6:46 am #50349havsingh
MemberThank you Stewart 🙂
-
AuthorPosts
- The topic ‘AgentPress – "Property Details" for UK! Please Help’ is closed to new replies.