• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Customizing AgentPress Listings with Another Theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Customizing AgentPress Listings with Another Theme

This topic is: not resolved

Tagged: AgentPress Listings, lifestyle Pro

  • This topic has 8 replies, 5 voices, and was last updated 7 years, 9 months ago by hortonsart.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • July 23, 2014 at 4:40 pm #115607
    mborger
    Member

    Hello. 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 #121460
    Tom
    Participant

    Hi 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 the functions.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 #122017
    mborger
    Member

    Hi 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 #122072
    Tom
    Participant

    That 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_detailsor 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 #124581
    Tom
    Member

    Hi 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,
    Tom

    September 15, 2014 at 8:43 pm #124598
    mborger
    Member

    I 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 #124643
    Tom
    Member

    Ah 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 #136995
    niceup
    Member

    I 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 #148855
    hortonsart
    Member

    If 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',
  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble