• Resolved antonie2008

    (@antonie2008)


    On the Plugin Demo Page the pdb-fields in the list have different classes for each field. On my list each field has the same class (class=”pdb-field”). I read through the documentation and the Setup Guide, I tried with the field attribute field, but I don’t find the mistake / solution.

    Would be great to get help. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Normally, a class based on the field name is also present with the “pdb-field” class, such as “first_name-field” or “email-field” to give you a way to target individual fields with your CSS.

    This will depend on the template you are using, if you are using a custom template, you may need to make sure the code to place the fieldname-based class is in place.

    To answer this more specifically, I’d need to know which template you are using.

    Thread Starter antonie2008

    (@antonie2008)

    Hello and thank you for answering today. I use the responsive template with the Combo Multisearch Plugin [pdb_list template=multisearch-responsive].
    I cannot add a screenshot here, but my div classes still are all just named with “pdb-field”.
    If there is a possibility for private content I could send you the link if you need it.

    Best regards,
    Antonie

    Plugin Author xnau webdesign

    (@xnau)

    OK, yes, that template needs to be updated, thanks for letting me know about this. I’ll need to issue an update, it will be a week or so on that.

    IF you want to set up a custom template, you can add this yourself with something like this:

    <div class="pdb-field <?php echo $this->field->name() ?>-field" >

    Thread Starter antonie2008

    (@antonie2008)

    Hello and thank you very much for answering and updating, now it works fine ??
    Great Plugin + Addon and great support. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add field name to the pdb-field class’ is closed to new replies.