Customizing AgentPress Listings with Another Theme

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

This topic is: not resolved

This topic contains 6 replies, has 3 voices, and was last updated by  Tom.Nunn 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #115607

    mborger
    Participant
    Post count: 109

    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/
    #121460

    Tom
    Participant
    Post count: 942

    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.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #122017

    mborger
    Participant
    Post count: 109

    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.

    #122072

    Tom
    Participant
    Post count: 942

    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.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #124581

    Tom.Nunn
    Member
    Post count: 54

    Hi Guys,

    How did you overcome this issue? (http://www.studiopress.com/forums/topic/agentpress-listings-on-agentpress-pro-theme).

    You may only experience it if you are using the AgentPress Pro Theme…

    Many Thanks,
    Tom

    #124598

    mborger
    Participant
    Post count: 109

    I never got it to work, unfortunately. I need to go back in and give it another try – just got sidetracked with other projects.

    #124643

    Tom.Nunn
    Member
    Post count: 54

    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

    • This reply was modified 1 month ago by  Tom.Nunn.
    • This reply was modified 1 month ago by  Tom.Nunn.
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.