Hi @birken
Thanks for response!
sorry i dont understand this answer: It would be recommended to look for another element in the individual items of the listing though
The code example that my colleague shared depends on the “general” CSS class of the given page. So it does not see if the listing has been claimed really or not and yes – you would need to edit that code each and every time you know listing is claimed. Edit by adding yet another class.
The better way would be to use CSS class of some other element of the page. Such element should be “unique” for pages that show claimed listing but not other listing.
For example, let’s say that “claimed” pages have the message on top that says “Listing claimed” and if you inspect that message with browser “inspect” tool, you find out that the HTML of that message is like this:
<span class="listing-claimed">Listing claimed</span>
then you can modify the code and use the .listing-claimed class in it, like this:
(function($) {
$( document ).ready(function() {
if ($( "body" ).hasClass( "listing-claimed")) {
$( "#forminator-module-665" ).hide();
}
});
})( jQuery );
This way you wouldn’t need to edit the code manually each time. It would automatically work on each and every page that contains that “listing claimed” message.
That said, I’m not sure if there is such class that you can use. We can take a look and see if we could help but you would need to share direct links to example pages:
– at least one of claimed listing
– and at least one of not claimed listing
so we could take a look and compare them to see if we can identify such unique element/class there.
Best regards,
Adam