WordPress.org

Ready to get started?Download WordPress

Forums

IProperty Real Estate Agent
[resolved] Remove tabs 'details' and 'convert' from property page (6 posts)

  1. CarolVerity
    Member
    Posted 11 months ago #

    Please could you tell me how I can remove the details and convert tabs from the main property page so that I only have the overview tab remaining?

    http://happydaysibiza.net/property/villa-roca/

    Many thanks
    Carol

    http://wordpress.org/plugins/intellectual-property-basic/

  2. thinkeryllc
    Member
    Plugin Author

    Posted 11 months ago #

    To remove the details tab, open the 'iproperty/views/single_property.php' and comment out:

    $main_tabs['iproperty-info-details'] = array(
      'label' => __( 'Details', 'iproperty' ),
      'template_file' => iproperty_get_template_path( 'single_property/main_tabs/_details.php' ),
      'variables' => array( 'property' => $property )
    );

    To remove the currency tab, open the 'iproperty/iproperty.php' file and comment out:

    add_filter( 'iproperty_single_property_main_tabs', 'iproperty_add_currency_converstion_tab', 10, 2 );

    Let us know questions. thanks.

  3. CarolVerity
    Member
    Posted 11 months ago #

    Sorry, could you please give me an exact example of the 'comment out' that you talk about? I have tried a couple of things using /* but keep getting a server error.

    Many thanks
    Carol

  4. thinkeryllc
    Member
    Plugin Author

    Posted 11 months ago #

    In PHP you use the /* to comment out blocks of text like this:

    /* commenting this whole thing out
    and this
    and this
    ending here */

    You can also just use // to comment out single lines like this:

    `// comment line

  5. thinkeryllc
    Member
    Plugin Author

    Posted 11 months ago #

    well that code formatting got screwy.

    Hopefully you see what I was getting at. You need to open and close comment blocks if you use the /* syntax

    /* open and then close */

    // single line comment

  6. CarolVerity
    Member
    Posted 11 months ago #

    Ignore that... I did it - just didn't have the /* and the */ in the right places :-) should have wrapped exactly as per your coding examples...

    All sorted now. Thank you

Reply

You must log in to post.

About this Plugin

About this Topic