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 8 replies, has 5 voices, and was last updated by  hortonsart 2 months, 2 weeks ago.

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

    mborger
    Participant

    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

    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

    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

    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
    Participant

    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

    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
    Participant

    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 9 months, 3 weeks ago by  Tom.Nunn.
    • This reply was modified 9 months, 3 weeks ago by  Tom.Nunn.
    #136995

    niceup
    Participant

    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’,

    #148855

    hortonsart
    Participant

    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',
Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.