• Resolved stevebrett

    (@stevebrett)


    This is a site im working on for an art gallery The paintings have a bunch of custom fields- but not all of them consistently have values. The Relevansi output shows the fields fine but shows blank

    • where the fields are empty.

      Is there anyway I could suppress the display of these empty list item lines

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mikko Saari

    (@msaari)

    It’s not about Relevanssi output, just a question of CSS. Those same empty list items appear also on the single post pages, but there the list-style-type CSS attribute is set to none, so the discs don’t appear. On the search results page, the list-style-type is set to disc, and the discs appear.

    Adding this to your CSS styles should fix this:

    .search .entry-content ul > li {
        list-style-type: none;
    }
    Thread Starter stevebrett

    (@stevebrett)

    Thanks Mikko i wasn’t clear in my description. its not the disc that is the issue its the complete list item pair

    • pair id like to suppress as it causes and extra space

    Plugin Author Mikko Saari

    (@msaari)

    Did you try using the CSS? Because it makes all the extra spaces go away. If you look at your single post pages, the same empty list item pairs appear there as well, but because the CSS is different, there’s no empty space. The empty space will disappear from the search results pages as well.

    If you want to remove the whole list item pairs, you need to modify your theme, because it’s your theme that adds them, not Relevanssi. I can’t help you with that.

    Thread Starter stevebrett

    (@stevebrett)

    Mikko Thanks yes- we were hoping to keep the bullets where there was info and just collapse the empty ones. But i think this will be acceptable. Appreciate the help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display of posts with blank custom fields’ is closed to new replies.