Exclude Description field from some packages

This topic contains 5 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #506404

    vivek
    Full Member
    Post count: 246

    Hi, I would like to exclude the Description field from one of the packages – but that field is not allowed to exclude in the package.

    Hiding thru CSS would hide it from all packages.

    Any suggestions on how i can achieve this, please?

    thanks, Vivek

    #506487

    Kor
    Moderator
    Post count: 16516

    Hi vivek,

    Thanks for your post. You can apply a custom CSS class into the “Description Field” and apply custom CSS to hide it only for that CPT.

    #506518

    vivek
    Full Member
    Post count: 246

    Thanks Kor,

    Actually, I do not want to hide ‘Description’ field from a CPT, but only from one of the packages eg Free package. In other packages i do want the description to be there.
    Unlike custom fields i cannot exclude Desc in the package or field setting.

    I looked at this snippet:https://wpgeodirectory.com/docs/common-code-snippets/#package , but this for detail page, not for Add-Listing Page

    I would like to exclude /hide Desc from the ADD LISTING page for a partciular package, to have a similar effect as excluding a field in the package settings.

    thanks, Vivek

    #506535

    Alex Rollin
    Moderator
    Post count: 27815

    The option included with GD is to set the description field for 10 characters. Inside the package options you can enable the option to limit the characters in the description field, then set the limit for 10.

    There isn’t an option to exclude that particular field through the pricing manager options, as you say, so that would require a customization.

    #506550

    vivek
    Full Member
    Post count: 246

    Thanks, Alex.

    Is there an easy way to add the package ID and hide the description thru css, for add listing also, as done for detail page here?

    https://wpgeodirectory.com/docs/common-code-snippets/#package

    thanks, Vivek

    #506653

    Alex Rollin
    Moderator
    Post count: 27815

    Unfortunately, Package ID is not loaded on the Add Listing page body class.

    I have taken this up as a suggestion and will share it with our development team to see whether we can work on this in the near future.

    Please feel free to make a new topic if you need help with anything else.

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

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

Open Support Ticket