If you share your site and follow the advice at Requesting Help we’ll be able to see what’s up.
Also, I edited your post to include code blocks, and you reverted it. I don’t edit-war with folks, but I think your code examples should be in code fences, so we can read them easier.