• 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

Winning Agent Pro – Change property detail fields

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 › General Discussion › Winning Agent Pro – Change property detail fields

This topic is: not resolved

Tagged: winning agent pro

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 10 months ago by Garys831.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 6, 2014 at 2:05 pm #113148
    Garys831
    Participant

    I need to change a few of the current property detail fields to something more suitable for commercial property website. For instance change "Bedrooms" to "Lot Size". Can anyone point me in the right direction.

    Than you ,
    Gary

    http://www.sites4smb.com/?listing=8505-park-ave
    July 6, 2014 at 3:01 pm #113151
    DTHkelly
    Member

    The theme author will have the best answer.

    But in the meantime:

    If Property Details are Custom Post Types, see the "translation" links in this thread.

    Need Help Please!!

    You can "translate" English word "Bedrooms" to English words "Lot Size"

    Or open the zip file that you downloaded from StudioPress, find the CPT template file and (off line) change the field text. Upload the revised file to your childtheme.

    July 6, 2014 at 3:15 pm #113152
    DTHkelly
    Member

    I use https://wordpress.org/plugins/code-snippets/ to add PHP snippets (instead of adding to childtheme functions.php file)

    Here is a "snippet" that translates 3 separate words/phrases in a Custom Post Type in my Dynamik-Genesis childtheme. I use the Code Snippets plugin to add the snippet.

    Othewise, add your version of the function at the end of your childtheme's functions.php file:

    /* Replace Text */
    add_filter('gettext', 'translate_text'); 
    add_filter('ngettext', 'translate_text');
    function translate_text($translated) { 
     /* Sensei Lesson Translated to Unit */
    	$translated = str_ireplace('Lesson', 'Unit', $translated);
        /* Sensei New Courses Translated to Available Courses */
        $translated = str_ireplace('New Courses', 'Available Courses', $translated);
    	/* Sensei Teacher Translated to Faculty */
        $translated = str_ireplace('Teacher', 'Faculty', $translated);
    	return $translated; 
    }

    I have 3 translations above in the same function. Keep in mind you can only use this function once (otherwise "white screen of death" ensues), so you have to correctly add new string translations within the same function.

    Back up your site. Better yet, test on a test site.

    July 7, 2014 at 7:11 am #113202
    Garys831
    Participant

    Thanks for the response. I not strong in php more of a cut and paste person. I was hoping to find the word "bedrooms" in a PHP file and change it to "Lot Size". But see no mention of the word "bedroom" in any of the PHP files.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ 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

© 2026 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