I have read your project requirement. I can fix your code issue.
I'm a Drupal themer/developer, I have over 8 years working on various Drupal (D6-D7-D8) projects from theming (Design, HTML, CSS, Javascript) to development (PHP, MYSQL, Drupal). I can create new themes and new modules, fix theme issues and module issues, create and upgrade Drupal sites, also suggest the best solution for Drupal site owners.