ThemeShaper Forums » Thematic

[closed]

Neutica Plus / Soundmanager2 / Javascript / Stylesheet

(2 posts)
  • Started 4 years ago by MoifMurphy
  • Latest reply from MoifMurphy
  • This topic is resolved
  1. Hello,

    I'm new.

    I'd like to add Soundmanager2 to Neuticaplus. I've successfully managed to get it working on the rather excellent Nuetica and decided I wanted to upgrade the whole experience and paid for Neutica+

    So far so good. I then tried to re-follow these instructions: http://superpositionkitty.com/2009/04/soundmanager-2-wordpress/ but I'm a little stuck on how thematic is calling stuff.

    I've worked out that Thematic uses a function.php which condenses all the usual WP theme php files but I'm trying to figure out if I should use the thematic function.php or the neuticaplus function.php. I'm presuming the latter.

    The stumbling block for me is where to put the stylesheet and javascript code quoted here:

    code
    <link rel="stylesheet" href="http://yoursite.com/wp-content/themes/yourtheme/css/inlineplayer.css" type="text/css" media="screen" />

    <script type="text/javascript" src="http://yoursite.com/wp-content/themes/yourtheme/js/soundmanager2.js"></script>
    <script type="text/javascript" src="http://yoursite.com/wp-content/themes/yourtheme/js/inlineplayer.js"></script>
    /code

    I've tried this for the stylesheet:

    code
    // SoundManager2 Stylesheet
    function childtheme_create_stylesheet($content) {
    $content .= "\t";
    $content .= "
    <link rel=\"stylesheet\" type=\"text/css\" href=\"";
    $content .= get_bloginfo('stylesheet_directory') . '/';
    $content .= 'inlineplayer.css';
    $content .= "\" />";
    $content .= "\n\n";
    return $content;
    }
    add_filter('thematic_create_stylesheet', 'childtheme_create_stylesheet');
    /code

    and I have no clue when it comes to the javascript.

    Any help appreciated.

    Posted 4 years ago #
  2. Woot!

    Figured it out :)

    I used the following:

    code
    // SoundManager2 Stylesheet
    function childtheme_create_stylesheet($content) {
    $content .= "\t";
    $content .= "
    <link rel=\"stylesheet\" type=\"text/css\" href=\"";
    $content .= get_bloginfo('stylesheet_directory') . '/';
    $content .= 'inlineplayer.css';
    $content .= "\" />";
    $content .= "\n\n";
    return $content;
    }
    add_filter('thematic_create_stylesheet', 'childtheme_create_stylesheet');

    // SoundManager2 Javascript
    function childtheme_scripts() {?>
    <script type="text/javascript" src="http://192.168.9.80/wordpress/wp-content/themes/neuticaplus/js/soundmanager2.js"></script>
    <script type="text/javascript" src="http://192.168.9.80/wordpress/wp-content/themes/neuticaplus/js/inlineplayer.js"></script>
    <?php }
    add_action('wp_head','childtheme_scripts');

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.