Sorry, but you do not have the capability to view this topic
-
Supported
- Topics: 8
- Replies: 22
- Total posts: 30
Not too shy to talkPost count: 26Hi,
I made some customizations to the radio player on my site: wrgw.fccrockwood.org. Namely, I made it 50% shorter (now 40px). However, the default jQuery function used to toggle the player moves it 80px. I know I could alter the parent theme by changing:
// Radio Player Switcher
jQuery(“.jp-close-btn2”).toggle(function () {
jQuery(this).parents(“.jp-radio”).animate({bottom: -80} ,300); });so that it is -40 rather than -80. However, I’d prefer to do this through the child theme so that the code does not break with new updates.
Is there a way to override the jQuery function in the child theme? I tried uploading sys_custom.js to musicplay-child/js/ but it does not work as it should.
Thank you again for your help!