I am trying to:
Attach online reading book custom field with videos and translation download link field with popups
I need if I filled only one field display it and hide the other
and customize the layout instead on 2 columns to single one
Note that this is a presale question
Dear Drmohamed,
I suggest you try with the shrotcode [wpv-conditional] of Views plugin, check if the specific custom field is empty or not, then display what you want, see our document:
https://toolset.com/documentation/views-shortcodes/#wpv-conditional
Conditional shortcode to be used to display a specific block of meta HTML based on results of a boolean expression
Read more about Conditional HTML output in your views.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
Thanks For Your Kind Reply
Please if I need to implement custom css of another block of content according to fields used
is it possible by toolset ?
I suggest defined two kinds of CSS class in your theme file "style.css", for example:
.field-empty{
...
}
.field-not-empty{
...
}
Then use the shortcode [wpv-conditional] to check if the specific field is empty or not, then display correspond CSS class name