The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] add_action Not Printing (3 posts)

  1. cpoteet
    Posted 9 years ago #

    I have a plugin with the following code, but for the life of me it won't print to the header. Ideas?

    $wp_smoothscroll_url = get_bloginfo('wpurl') . "/";

    function wp_smoothscroll() {

    echo '
    <script type="text/javascript" src="'.$wp_smoothscroll_url.'wp-content/plugins/smoothscroll/smoothscroll.js"></script>

    add_action('wp_head', 'wp_smoothscroll');

  2. Kafkaesqui

    Posted 9 years ago #

    Is there a:

    <?php wp_head(); ?>

    line in the active theme's header.php?

  3. cpoteet
    Posted 9 years ago #

    No there was not. Resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic