• A friend and I were trying to edit the code of the Hello Dolly plugin (he has some inclination in coding, I just come up with dumb ideas), but we had no luck. I was wondering if anyone could come up with a way to get results that we couldn’t.

    I’ve already seen how easy it is to change the lyrics within the plugin to whatever you like, and the idea of that intrigues me. What I’m looking to do is have this plugin visible on the actual wordpress page vs. on my admin page so that anyone viewing the website can see whatever lyrics are present. Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, definitely. The hellodolly plugin “hooks” into the administration menu functions, whereas you are trying instead to “hook” into the public version of the site. Therefore, you have to change the hooks that you’re registering your functions to do that on the public site (not the admin site).

    See this page: http://codex.wordpress.org/Plugin_API/Action_Reference

    add_action('admin_footer', 'hello_dolly');

    might become:

    add_action('wp_footer', 'hello_dolly');
    add_action('admin_head', 'dolly_css');

    might become:

    add_action('wp_head', 'dolly_css');

    NOTES/DISCLAIMER: I didn’t test this code, but hopefully you get the point about why your approach is not working…

    Thread Starter ryanmccauley

    (@ryanmccauley)

    hey thanks! it works now. we had that second part right, but changing the ‘admin_notice’ to ‘wp_footer’ did the trick. coolness.

    Glad it helped!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hello Dolly plugin hack idea’ is closed to new replies.