Condition: Show Gravar only if it exists

Hi!

I am trying to show the Gravatar if it exists, but cannot find the way to construct the condition. Lots of users do not have it and I would like to hide the generic icon, if that is possible.

Also, it seems that we cannot preview Author pages in the Layout builder. Especially when there are a lot of users like WooCommerce customers. None of them are authors, but they are populating the list and breaking it.

Thanks!

Hello @Misho,

Thanks for writing in!

You can insert an image element and a generic icon each of the elements can have the following condition. You can use the String condition and insert {{dc:author:gravatar}} is not empty. You can leave the right side as blank that considers empty.

For the layout builder, the users are loaded when you are trying to view the Author archive.

I will post for a feature request that it will only populate roles that are allowed to edit or create a post, page or product so that it can be considered in the future release of the theme.

Best Regards.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.