Removing Address From Display

Discussion in 'ClassiCraft WordPress Theme' started by amaconline, Sep 12, 2013.

Thread Status:
Not open for further replies.
  1. amaconline

    amaconline Member

    Joined:
    Feb 17, 2013
    Messages:
    217
    Likes Received:
    6
    Hi,

    Thank you first of all for all your support. For security we would like to hide/remove address from displaying that display with each ad. Check attachment for your ref.

    Thank you.

    Eastern Globe
    www.EasternGlobe.com
     

    Attached Files:

  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to single-ad.php present in your theme directorye and remove the code given below

    Code:
        <table class="ar_desc">
                                                    <?php
                                                    $free_ad = get_post_meta($post->ID, 'cc_add_type', true);
                                                    foreach ($cc_custom_meta as $field) {
                                                        if (($free_ad == "pro") || ($free_ad == "free" && $field['show_free'] == true)) {
                                                            if ($field['type'] != 'image_uploader' && $field['type'] != 'cc_map_input' && $field['type'] != 'cc_map' && $field['htmlvar_name'] != 'cc_price' && get_post_meta($post->ID, $field['htmlvar_name'], true)) {
                                                                ?>
                                                                <tr>
                                                                    <td class="label"><?php echo $field['field_title']; ?></td>
                                                                    <td><?php echo get_post_meta($post->ID, $field['htmlvar_name'], true); ?></td>
                                                                </tr>                             
                                                                <?php
                                                            }
                                                        }
                                                    }
                                                    ?>
                                                </table>
    Sending image for reference

    2013-09-12_1336.png



    This will solve your issue.
     
    amaconline likes this.
  3. amaconline

    amaconline Member

    Joined:
    Feb 17, 2013
    Messages:
    217
    Likes Received:
    6
    Hi Gourav, Thank you very much. However, is it possible to hide just the:
    • Street Address
    • Post Code
    Thank you.
     
  4. amaconline

    amaconline Member

    Joined:
    Feb 17, 2013
    Messages:
    217
    Likes Received:
    6
    Is there any solution for the above. Please check my last post. Thank you very much.
     
  5. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    Unfortunately there isn't a way to do that with our theme unless you custom code something up. Sorry.

    If this isn't something you're able to do then you would need to hire Freelancer for this.
     
    amaconline likes this.
  6. amaconline

    amaconline Member

    Joined:
    Feb 17, 2013
    Messages:
    217
    Likes Received:
    6
    Temporarily I have managed to set the "Active" option to "No" on Settings --> Custom Field just for the "Street". I really hope you will update another option under setting so user can decide whether the address should display partly or as a whole.

    Thank you for your help any way.
     
Thread Status:
Not open for further replies.

Share This Page