@mottdesign In your code, I notice that you have
// Checks if the current item has a value in the “button” field
if ( ! item .pdfDownload0){
Yet, your screen shot of the content manage for an item show your PDF field, just saying “pdf”. Did you change the property to “pdfDownlload0”? If you didn’t then your IF line should be
// Checks if the current item has a value in the “pdf” field
if ( ! item .pdf){
Are you not testing the site LIVE?
Normally new sites don’t have the domain name associated with it, and have the https://iamteejay.editorx.io/ name-of-site
OR
If you are working with a live site, you can keep the new stuff off the navigation and hide the pages from search engines.
IF you haven’t viewed the site live, then it will be hard to know if the code works, as it doesn’t work in PREVIEW MODE.
Alternatively.