Contents of "Css class" field not added to the page.

This topic contains 11 replies, has 4 voices, and was last updated by  Paolo 5 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #491829

    Directory Path
    Expired Member
    Post count: 235

    Class on “css class” field is not being added.

    Steps:
    1. Places > Settings > Custom fields > Address > Css class > “blabla”
    2. Open page containing gd add listing, and “blabla” is not in the source code.

    #491847

    Guust
    Moderator
    Post count: 29970

    That would be because the custom field is not shown on the Add Listing page, but only the data for the field.
    CSS classes are only used where the final field is displayed.
    Thanks

    #491867

    Directory Path
    Expired Member
    Post count: 235

    We don’t have any custom fields and all of them are shown in the add listing page. Adresss, phone, website…etc., and the CSS class doesn’t show there in the gd add listing widget html.

    #491868

    Guust
    Moderator
    Post count: 29970

    Can you explain what you mean with the “gd add listing widget”?

    You can only add data to the fields on the Add Listing page.
    The output of the fields is only ever on other pages like the detail and categories pages.
    CSS is only used in the output.

    #491869

    Directory Path
    Expired Member
    Post count: 235
    This reply has been marked as private.
    #491874

    Guust
    Moderator
    Post count: 29970

    Correct, there’s no use for it because there’s no fields requiring styling.
    Try reading my previous answers again.
    The fields are not “used” (displayed) on the Add Listing page. You can only add data.
    Thanks

    #491875

    Directory Path
    Expired Member
    Post count: 235

    Adding a class to the input field so we can style it is what we’re trying to do. To reiterate, we want to add a class to the input, or div or span that contains the input tag.

    #491877

    Guust
    Moderator
    Post count: 29970

    You can’t style fields on the Add Listing page. Only on all other pages.
    There is no point styling a textarea or drop down etc.

    #491878

    Directory Path
    Expired Member
    Post count: 235

    There is no point styling a textarea or drop down etc.

    Can I please get someone else to reply to this topic?

    #491881

    Directory Path
    Expired Member
    Post count: 235

    We found a workaround, thank you. Please mark it as solved.

    #491926

    Kor
    Moderator
    Post count: 16516

    Hi there,

    This topic is closed.

    #492043

    Paolo
    Site Admin
    Post count: 31206

    There is no need for any workaround, Each field already has both a class and an ID.

    Thanks

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount