Customising list view

This topic contains 1 reply, has 2 voices, and was last updated by  Paolo 8 years, 6 months ago.

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

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #193731

    sumi
    Expired Member
    Post count: 97

    Hi all,

    How can I

    1. have a field where I can limit its output charachters but not input?

    I want to display a field, but for item to display in list view to my specification (css) i cant have too many characters – but i want to give customers option of being able to type in anything (so i dont want to limit characters)

    and
    2. how can i display (in list view) text with breaks (as intended in input text box)?

    For example when inputting bullet points on different lines, the list view of the description is displayed all in one continuous line

    #193777

    Paolo
    Site Admin
    Post count: 31206

    1) Truncate String with Ellipsis
    https://css-tricks.com/snippets/css/truncate-string-with-ellipsis/

    2) Excerpt in wordpress strips all html. This requiresa customization. You’ll need to use the_content instead of the_excerpt.

    Take a copy of the file geodirectory-templates/listing-listview.php and paste in a new folder of your child theme called geodirectory.

    around line 222 you will find the code with the excerpt. FYI if you modify this you will get the full content under each listings (and this is really beyond support).

    Let us know how you went,

    Thanks

Viewing 2 posts - 1 through 2 (of 2 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