WordPress.org

Ready to get started?Download WordPress

Forums

add_thickbox() not working in 2.6.1 (3 posts)

  1. markrall
    Member
    Posted 6 years ago #

    I've made a call to add_thickbox() in my functions.php file but for some reason it won't print the call to the thickbox CSS file.

    So then I tried wp_enqueue_style('thickbox'); in both functions.php and header.php but got nothing back.

    Any ideas?

  2. Covi
    Member
    Posted 5 years ago #

    Me too, for example with «humanMesages».

    In my funcions.php from the function to init the Theme, wich works fine with all other instructions and injections:

    wp_register_style('humanMsgCSS', get_bloginfo("template_url") .
    '/css/humanmsg.css'); // Works, doesn't work oO?
    wp_register_script('humanMsg', LIBS_RT . 'js/jquery/humanmsg.js');
    // Works.
    /* Two versiones to trying. Obviously, i only use one of each: */
    wp_enqueue_style('humanMsgCSS'); // Doesn't work.
    // Trying to force src:
    wp_enqueue_style('humanMsgCSS', get_bloginfo("template_url") .
    '/css/humanmsg.css'); // Doesn't work.

    Note: A simple add_action() for wp_head works fine.
    So... only the related functions to styles doesn't works... or i can't do it, ...that's the most probably ^^!.

    We need move this post to other forum of support for check wp_enqueue_style() function?

    Regards

  3. Covi
    Member
    Posted 5 years ago #

    Ups..., update: try with wp_print_styles() ^^!

Topic Closed

This topic has been closed to new replies.

About this Topic