Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author thinkeryllc

    (@thinkeryllc)

    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.

    Thread Starter CarolVerity

    (@carolverity)

    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

    Plugin Author thinkeryllc

    (@thinkeryllc)

    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

    Plugin Author thinkeryllc

    (@thinkeryllc)

    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

    Thread Starter CarolVerity

    (@carolverity)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove tabs 'details' and 'convert' from property page’ is closed to new replies.