Register for InstructureCon25 • Passes include access to all sessions, the expo hall, entertainment and networking events, meals, and extraterrestrial encounters.
Found this content helpful? Log in or sign up to leave a like!
I am trying to add a message to a subcatalog, so the user only sees it when they go to that category. I entered the JS example below and when I navigate to the subcatalog page, the message is not showing.
$('#home-page #feature').append('<h1>Online registrations will not be available October 24th thru November 1st for server maintenance</h1><h4>During this time you can call (712) 274-6418</h4>')
First, I don't think that message will only appear when a user goes to a certain category. #home-page #feature is the main Catalog page. I'm not seeing where the page structure changes based on the Categories filter being activated. I'm not a developer though, I just wish I had more developer skills. I'm more of a hack.
Second, I did play around with the custom js code you posted. It didn't work for me initially because we have some "carousel" code that activates and gets displayed in that area above the search bar. When I was refreshing the page I was seeing your message flash and then disappear which gave me the idea to remove our carousel code. When I did that I was seeing your message appear and stay on the screen. So, I'm not sure what else you have loading in that area above the search bar but check into that.
To participate in the Instructure Community, you need to sign up or log in:
Sign In