WordPress.org

Support

Support » Plugins and Hacks » DJ Rotator For WordPress » [Resolved] [Plugin: DJ Rotator For WordPress] Action Hooks

[Resolved] [Plugin: DJ Rotator For WordPress] Action Hooks

  • Hi,

    I love the DJ Rotator plugin and only need to make the small modification of placing a image button that will link to our live stream underneath the description.

    I read that this can be easily done using Action Hooks, specifically the djwp_after_description hook, this is fine if you have any idea what that means.

    Obviously my coding ability stops at a particular level and I would very much appreciate a dummies guide to how to achieve what I need to with DJ Rotator. Perhaps even a copy and past solution where I only need to change out the URL that the anchor tag is pointing to and the location and filename of the image.

    Thanks in advance.

    http://wordpress.org/extend/plugins/dj-rotator-for-wordpress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Greg Rickaby

    @gregrickaby

    Open functions.php.

    Copy and paste this code (and edit the HTML to point at your image)

    add_action( 'djwp_after_description', 'child_listen_live_graphic' );
    function child_listen_live_graphic() { ?>
        <a href="http://link-to-listen-live-page"><img src="http://link-to-listen-live-graphic"></a>
    <?php }

    Save. Upload.

    Thanks heaps for that Greg

    Plugin Author Greg Rickaby

    @gregrickaby

    My pleasure. I’m going to mark this thread as solved.

    Good morning.

    I was looking for a plugin like the DJ Rotator for days and for sure he is the best.

    However, I have a small problem.
    I want to know if have to register a default Auto DJ to change with “if” because the times that the DJ is not online, the widget is blank.

    Thank you in advance for your attention and I apologize for my horrible English. lol

    Sincerely,

    John

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: DJ Rotator For WordPress] Action Hooks’ is closed to new replies.
Skip to toolbar