Your Time:
Our Time:

Changing Animation of Radio Player Toggle

Sorry, but you do not have the capability to view this topic

  • Resolved
    Posted in: MusicPlay  
  • Supported
    • Topics: 8
    • Replies: 22
    • Total posts: 30
    Not too shy to talk
    Post count: 26
    pkobak
    Member
    2015-02-16 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.