Hello,
I am trying to get the correct syntax for getting my ACF Link to display as a button using L&L.
This is what I have so far, but nothing displays:
I checked the inspector to make sure nothing was preventing it from displaying or that the class was the issue. It does not show the div in the inspector either.
I originally had the field as an upload, which worked great, but had to change to a link as I needed to make sure that the most current version of the PDF was accessible through the link provided.
I think I’m getting closer. Thanks, I was missing the acf_link in the code. After I had changed it from upload to link, I needed to update. I used the code block provided, but it still does not display. I’m trying it two different ways:
That is good news @tiabradford! Can you tell me what is the name you have set for your acf_link?
You could also try using the tag <Field /> to help you debug what you are trying to show. It should display a json format(you can checkout json format here) of the data where the left side of the colon is the field and the right side of the colon is the value. (you can refer to the image below as an example) We use < Field title /> :
I’ve tested this out myself using the exact code and I’m able to work with ACF link fields no problem. Maybe there’s some other unique configuration on your site that we’re missing.
Is it possible to ask for access to your website? You can dm me the credentials.
Thank you so much! My issue is resolved. I appreciate you taking time out to help me with my problem. I will be sure to keep studying the plugin to understand it fully.