Your Time:
Our Time:
← Back to discussions

Changing Animation of Radio Player Toggle

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 1 reply, 2 voices, and was last updated 11 years, 6 months ago by Wajid Khan.

  • 2015-02-16 at 9:50 am
    Support Expired
    #6989
    pkobak
    Participant
    • Topics: 8
    • Replies: 22
    • Total posts: 30
    • Post count: 26

    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!

    2015-02-16 at 8:07 pm
    #6998
    Wajid Khan
    Keymaster
    • Topics: 5
    • Replies: 1543
    • Total posts: 1548
    • Post count: 1876

    Topic is Solved via Skype Communication. But if you want to update this topic please reply here.

You must be logged in to reply to this topic.