How do I hide the field names of specific displayed fields?
-
Hello,
I wish to hide some of the field names of fields that i currently have displayed. For example, i wish to display a participants first and last name as a page title.
Therefore, i wish to hide “First Name” and “Last Name” field labels.
Using my rudimentary PHP skills i have ascertained that i need to edit the pdb-single-default.php. Specifically, i believe adding a simple ‘while loop’ would solve the problem. For example:
<?php while ($this->field->name() !== $this->field->name(First_Name, Last_Name);
<dt class=”<?php echo $this->field->name.’ ‘.$empty_class?>”><?php $this->field->print_label() ?></dt>
?>Hopefully someone here can see what i’m trying to do, and can tell me the correct way of doing it?
Alternatively, can the same effect be achieved in CSS without messing around with the PHP template?
Many thanks for your help
- The topic ‘How do I hide the field names of specific displayed fields?’ is closed to new replies.