Hi,
Apologies if this is really basic, but I’ve spent hours Googling and trying different bits of code with no success 🙁
Basically I’ve created a new text field in ACF called page-class
I’m then trying to get the value of the page-class to appear in the website template in the class of a property on the page.
For example the page code is – <div id=”web-page” class=”page-class generated by ACF”></div>
I was hoping to be able to enter the value of ‘page-class’ in WordPress using ACF.
I’ve managed to get this to work with text, titles and images, but I’m struggling with bringing a variable into the CSS class field.
Thanks in advance, kind regards
Brian