2 answers
- 10-1
I finally found a pattern that I can use to accurately target the relationship div's and hide the duplicates.This CSS rule hinges on an empty <p style="text-align:center;"></p> tag that is only in the code when a relationship exists and it always precedes the first div. We then evaluate the relationship divs and remove every duplicate (the 2nd, 4th, 6th, etc., line).
I tested thoroughly on my own RG website and it works as expected. That said, every site is configured differently, notably in what information is displayed on the animal detail page and the page layout. In the Website Service Related Settings we are using the default style for Animal detail page layout.
To use this on your RG website:
- Open an animal detail page that you know has relationships so that you can verify that my code works.
- In another tab, open the custom CSS page.
- Paste my code snippet (below). If you have existing code you can paste it at the bottom.
- Save the CSS code.
- Go back to the animal detail page you are using as a test and reload.
- Hopefully, the duplicates are no longer visible and you're a happy person. If you still see the duplicates, send me a message with a link to the page you used for testing and I will find a fix for you.
/* Animal Detail: Duplicate Relationship Text */ #Page286 #centerContainer { p[style="text-align:center;"]:empty + div + div, p[style="text-align:center;"]:empty + div + div + div + div, p[style="text-align:center;"]:empty + div + div + div + div + div + div { display: none !important; } }- Stacey McVey
Brandon,
This worked perfectly! Thank you!
Add your comment... - 10-1
Stacey,
Unfortunately, this issue has been previously reported by our users. We have a bug report for 'Relationship shows duplicate' in our online issues tracking service known as JIRA. You can see the report here: https://jira.rescuegroups.org/browse/CMTY-188
We do hope to address this request in future development, but are unable to provide an estimate for when that may be completed. You can login into JIRA to comment, watch, and vote on issues. Issues with more votes may receive higher priority from our team. If you do not have a username and password for our community pages, you may request those credentials here: https://userguide.rescuegroups.org/signup.actionSincerely,
Karen
Add your comment...


I have indicated sibling relationships for 4 puppies. On their individual dog page it lists the relationship twice for each sibling. But is only listed once in the actual relationship in the database. How do I correct this?
Thanks,