In WordPress – how do you assign a class to custom fields? I am attempting to target multiple custom fields with custom CSS, but seem unable to give them separate classes.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Thanks for your help.
I’ve since discovered a great bit of syntax that accomplishes the job.
This pulls in one single custom field at a time. In the example above, my custom field title was ‘Address’. The will wrap the content from that field – thus accomplishing the task of wrapping each custom field in it’s own class.