Your Time:
Our Time:

Changing Animation of Radio Player Toggle

  • Resolved
    Posted in: MusicPlay  
    • Topics: 8
    • Replies: 22
    • Total posts: 30
    pkobak
    Member
    February 16, 2015 at 9:50 am #6989

    Hi,

    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!

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.