• Hi,

    I implemented WP in an existing homepage:

    define('WP_USE_THEMES', false);
    	/** Loads the WordPress Environment and Template */
    	require($rel . "wp/wp-blog-header.php");
    	wp_head();

    I am using eg the plugin nextgen gallery.
    But its css files are missing in the output of wp_head() — or do I need another function to output the css files of a plugin?

    Thanks!
    Carlos

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you try using wp_enqueue_style()?

    Thread Starter mtemp

    (@mtemp)

    Hmm, yes, wp_enqueue_style is used in the nextgen gallery files…

    But I thought wp_head() will output e.g. all css references of the plugins automatically?!

    Nextgen hooks it’s style calls to template_redirect.

    In the main plugin file:

    add_action('template_redirect', array(&$this, 'load_styles') );

    If it really is just the css file you need, call it directly. If that doesn’t work, throw up a link to your page and the pastebin the whole source code for the homepage and I’ll take a look.

    Thread Starter mtemp

    (@mtemp)

    Maybe my English is too bad to explain my problem understandable …

    At the moment I am using 4 plugins, eg “FancyBox for WordPress”. Its code, eg a link to the fancygbox css file, will be placed at first of all via:

    require($rel . "wp/wp-blog-header.php");
    wp_head();

    However the code for the Nextell plugin is missing at this point.
    But why? Which code do I have to add so that nextell and similar plugins which uses “add_action…” will work?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘CSS files of plugins are not linked’ is closed to new replies.