• So long story short is, I wasn’t able to find a format in the available themes to fit what I wanted, so I made my own webpage from scratch to tie it all together. However, I’ve run into an odd issue where I’m trying to create a + button that expands a section of my page, then turns to a – sign that collapses the expanded section. The javascript seems to be working, but I’m having a bit of trouble with the CSS (kinda). The code works here on my computer, and I’ve even tried loading it into some of the online code testers. It all works 100% fine. When I upload the files onto my bluehost site, it doesn’t. When you inspect the element in question, there’s not even any css attached to it which isn’t true.

    So the real question is, how can the same code work locally, but then not once it’s uploaded to the domain? I’m definitely no pro at this, so maybe it’s something simple I’m overlooking. It’s super frustrating though.

    I also recognize that maybe this is more a question for bluehost, but I don’t think they have a forum, so I’m wondering if anyone has experience with their domains etc.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I see CSS applied from WeatherBlog.css. If there is any other CSS that should be applied, perhaps there’s a path error or something wrong with how it was enqueued? It’s hard to speculate about something I cannot see ??

Viewing 1 replies (of 1 total)
  • The topic ‘CSS code for button doesn’t work. (Sorta)’ is closed to new replies.