Community Forums › Forums › Archived Forums › Design Tips and Tricks › Customizing AgentPress Listings with Another Theme
Tagged: AgentPress Listings, lifestyle Pro
- This topic has 8 replies, 5 voices, and was last updated 9 years, 10 months ago by
hortonsart.
-
AuthorPosts
-
July 23, 2014 at 4:40 pm #115607
mborger
MemberHello. I'm looking to change some of the wording (ex. "Basement") from the AgentPress Listings plugin descriptions to terms more relevant to my market. I was able to do this when my site used the AgentPress theme, but now that I'm on Lifestyle Pro, I don't see where to make this change. Perhaps I'm missing something very simple.
Page in question: bigrockinvestments.com/listings/luxury-condo-sale-nauru-tower-3001/
Any assistance, please? Thank you in advance.
http://bigrockinvestments.com/listings/luxury-condo-sale-nauru-tower-3001/August 27, 2014 at 8:54 pm #121460Tom
ParticipantHi Michael,
It looks like you're still in need of customizing your property details. You can do this using the filter
agentpress_property_details
to add, change or remove fields. An example follows to remove the "Basement" item and add "Balcony Sq Ft". This code would be added to the bottom of thefunctions.php
file in your child theme.//* Customize the property details add_filter( 'agentpress_property_details', 'th_mod_property_details', 10, 2 ); function th_mod_property_details( $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 #:', 'agentpress-listings' ) => '_listing_mls', __( 'Square Feet:', 'apl' ) => '_listing_sqft', __( 'Bedrooms:', 'apl' ) => '_listing_bedrooms', __( 'Bathrooms:', 'apl' ) => '_listing_bathrooms', __( 'Balcony Sq Ft:', 'apl' ) => '_balcony_sqft', //* __( 'Basement:', 'apl' ) => '_listing_basement' ); return $details; }
Choose your next site design from over 350 Genesis themes.
[ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]August 31, 2014 at 4:06 am #122017mborger
MemberHi Tom. Thanks for assisting with this. I tried putting it in my functions.php, but it broke the file/site. Is there a syntax error in there? I'm not a syntax pro - I just copied and pasted it at the end of the file. Thanks again.
August 31, 2014 at 11:31 am #122072Tom
ParticipantThat should just work. I just tried it again using it in another Lifestyle Pro so there's no error in the snippet, It's essentially just pulled from AgentPress/Pro with a tiny tweak.
What was the error when the site broke? Is it possible the copy and paste process affected other code in functions.php? Is there already code in functions.php for
agentpress_property_details
or other mods for AgentPress Listings?
Choose your next site design from over 350 Genesis themes.
[ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]September 15, 2014 at 5:02 pm #124581Tom
MemberHi Guys,
How did you overcome this issue? (http://www.studiopress.community/topic/agentpress-listings-on-agentpress-pro-theme).
You may only experience it if you are using the AgentPress Pro Theme...
Many Thanks,
TomSeptember 15, 2014 at 8:43 pm #124598mborger
MemberI never got it to work, unfortunately. I need to go back in and give it another try - just got sidetracked with other projects.
September 16, 2014 at 7:23 am #124643Tom
MemberAh okay, so did you have the same trouble? After changing the details as above, you couldn't get the details to change on the listing?
For example: http://s29.postimg.org/uxsb0n3vb/Screen_Shot_2014_09_14_at_21_25_04.png
The details I was trying to change are 'Encino, California 91436' with the class
.listing-city-state-zip
if you look in the screenshot below, in the web inspector panel you will see I have changed this class to correspond with the new details.listing-town-area-zip
http://s29.postimg.org/63ge2005j/Screen_Shot_2014_09_16_at_14_15_59.png
It's bugging me now... Haha
Tom
January 11, 2015 at 8:44 am #136995niceup
MemberI have the same problem.
Just want to be clear, which file am I changing?
For example if I wanted to change bathroom to color.
Which file would I change the first second or both. I copied and pasted the bathroom line from the php file.. do I change the bathroom that has the apl or the second part or both?__( 'Bathrooms:', 'apl' ) => '_listing_bathrooms',
April 22, 2015 at 9:27 pm #148855hortonsart
MemberIf you are using the AgentPress Pro Theme, these settings are already in the functions.php file.
If you wanted to change the "Bathrooms" to "Color" you could modify this:
__( 'Bathrooms:', 'apl' ) => '_listing_bathrooms',
to this
__( 'Color:', 'apl' ) => '_listing_color',
If you wanted both "Bathrooms" and "Color" to display you would simply add a new detail called Color and leave the Bathroom detail alone. So it would look like this:
__( 'Bathrooms:', 'apl' ) => '_listing_bathrooms', __( 'Color:', 'apl' ) => '_listing_color',
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.