Change display order of field

This topic contains 11 replies, has 4 voices, and was last updated by  Stiofan O’Connor 9 years, 6 months ago.

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

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #12828

    kirio7
    Free User
    Post count: 6

    Hi, under the “Place Settings” -> “Custom Fields” in the dashboard, there is a “Display order” option, however this part here is greyed out with a default figure, how do I enable it / change the display order?

    #12830

    Guust
    Moderator
    Post count: 29970

    You just drag and drop to change the order.
    I guess the greyed out order field probably can be deleted. I’ll check with the developers.

    #12832

    kirio7
    Free User
    Post count: 6

    got it thanks for your quick reply… totally didn’t see that “drag and drop” instruction right on top until you mentioned.

    I’ve another question, the way the address is displayed on the website is always in this format:

    Address
    City
    Region
    Zip Code
    Country

    My issue is that my country is Singapore, which is a small country so the “City”, “Region”, and “Country” are actually all just “Singapore, and because those fields are required by the system, the end result would become something like this:

    Address: 38 Armenian Street
    Singapore
    Singapore
    179942
    Singapore

    Is there a way I can hide the “city”, “region”, and even “zip code” and “country” totally so that I can just keyed in everything in the address and have the address displayed in a single line e.g.:
    Address: 38 Armenian Street Singapore 179942

    Thanks.

    #12835

    Guust
    Moderator
    Post count: 29970

    I would think you might be able to add something to your functions.php file for that. I’ll check with Stiofan.

    #12865

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    You should be able to do this via CSS, something like:

    
    
    span[itemprop="addressCountry"] {
      display:none;
    }

    Stiofan

    #12938

    kirio7
    Free User
    Post count: 6

    thanks Stiofan, it works and the field is hidden. However the hidden fields are still occupying a blank space. In my case, I’ve hidden the region and the country, see attached image. Any way to remove the space occupied by the hidden fields?

    #12952

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Kiro, sorry i did not realise there were line breaks after them please add this also.

    
    
    span[itemprop="addressCountry"] + br{
      display:none;
    }

    Thanks,

    Stiofan

    #12963

    Guust
    Moderator
    Post count: 29970

    I could not get that to work, Stiofan. I used:

    
    
    span[itemprop="addressCountry"], 
    span[itemprop="addressRegion"], 
    span[itemprop="postalCode"] {
    display:none;
    }
    .geodir-company_info .geodir_more_info {
    height: 45px;
    }
    #12969

    kirio7
    Free User
    Post count: 6

    Thanks Stiofan and Guust, Stiofan’s method works for me, I was able to hide all the relevant line breaks using that method for the respective fields. Thanks!

    #20354

    halalcompass
    Expired Member
    Post count: 32

    Thanks I was looking for a way to remove the line breaks.

    Is there a way to add commas after each field? So that it would look something like: 100 McLevin Avenue, Toronto, Ontario, M1B 5K1 Canada

    Thank you.

    #20357

    halalcompass
    Expired Member
    Post count: 32

    I figured out one way to do this via CSS:

    span[itemprop=”streetAddress”]:after {
    content: “, “;
    }

    If there is a better way please share!

    Thanks.

    #20362

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi, that’s what i would suggest is the easiest way.

    Stiofan

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