Load in footer
-
Works fine but it loads with wp_head(); enabled.
I need to load in wp_footer();
especially the script wp-content/plugins/ajaxy-search-form/js/sf.jsfor style.css and common.css I added them manually to my <head>.
_________________________________
.... add_action( 'wp_head', array(&$this, 'head')); add_action( 'admin_head', array(&$this, 'head')); add_action( 'wp_footer', array(&$this, 'footer')); add_action( 'admin_footer', array(&$this, 'footer')); .... function head() { //wp_register_script('jquery'); $themes = $this->get_installed_themes(AJAXY_THEMES_DIR, 'themes'); $style = AJAXY_SF_PLUGIN_URL."themes/default/style.css"; $style_common = AJAXY_SF_PLUGIN_URL."themes/common.css"; $theme = $this->get_style_setting('theme'); $css = $this->get_style_setting('css'); if(isset($themes[$theme])){ $style = $themes[$theme]['stylesheet_url']; }
__________________________________
???
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Load in footer’ is closed to new replies.