Decription in Add listing not mandatory

This topic contains 6 replies, has 4 voices, and was last updated by  Guust 4 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #381626

    Tania Perez
    Full Member
    Post count: 299

    Hi! Is it possible to have the description of the listing, in the add listing page, as not mandatory?

    If so, how can I do that?

    Thank you!

    #381636

    Guust
    Moderator
    Post count: 29970

    If you use the Payment Manager addon, you can achieve that with creating a price package where you set the maximum characters for the description to zero.
    That will make the description field disappear.

    Thanks

    #381640

    Tania Perez
    Full Member
    Post count: 299

    Thank you! I do want it to show, just not mandatory, so users adding it, can skip that field.

    #381655

    Kor
    Moderator
    Post count: 16516

    Hi Tania,

    You can hide it with the custom CSS below. Insert into GD > Design > Scripts > Custom Style CSS

    
    
    #geodir_post_desc_row {
        display:none!important;
    }
    #381669

    Giri
    Expired Member
    Post count: 3155

    Hi Tania,

    Your workaround involves both js and css

    Add this JS in Design > Scripts

    
    
    jQuery( document ).ready(function() {   
        jQuery("#geodir_post_desc_row").removeClass("required_field");
    });

    Apply this CSS too.

    
    
    #geodir_post_desc_row label span, 
    #geodir_post_desc_row .geodir_message_error {
       display:none !important;
    }

    Let me know how that goes.
    https://wpgeodirectory.com/docs/common-code-snippets/#desc

    Thanks

    #381783

    Tania Perez
    Full Member
    Post count: 299

    Perfect! Thank you!!!

    #381823

    Guust
    Moderator
    Post count: 29970

    You’re welcome, from all 3 of us 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket