How can I remove the site URL from enqueued scripts and styles?

Similar to Wyck’s answer, but using str_replace instead of regex. script_loader_src and style_loader_src are the hooks you want. <?php add_filter( ‘script_loader_src’, ‘wpse47206_src’ ); add_filter( ‘style_loader_src’, ‘wpse47206_src’ ); function wpse47206_src( $url ) { if( is_admin() ) return $url; return str_replace( site_url(), ”, $url ); } You could also start the script/style URLs with a double slash … Read more

WordPress Code Flow

Probably the Program Flow on ToolPress is something for you: WordPress 3.0 Program Flow File Inclusions (Default Request); PDF. Contains important filenames, constants and hooks. My Favorite Cheat Sheet so far for the code flow stuff.

Add tags to the section via functions.php

The hook you’re looking for is specifically wp_head which could look something like this: function theme_xyz_header_metadata() { // Post object if needed // global $post; // Page conditional if needed // if( is_page() ){} ?> <meta name=”abc” content=”xyz” /> <?php } add_action( ‘wp_head’, ‘theme_xyz_header_metadata’ ); I believe in the long run though, since WordPress is … Read more

How to Link External jQuery/Javascript files with WordPress

From the wording of your question, you must be adding scripts by writing <script> tags in your template. Add your own scripts via wp_enqueue_script() in your template’s functions.php, appropriately setting dependences on jQuery, and wp_head() will add the scripts for you. function my_scripts() { wp_enqueue_script( ‘my-sweet-script’, get_bloginfo(‘template_directory’) . ‘/script.js’, array(‘jquery’) ); } add_action(‘template_redirect’, ‘my_scripts’); See … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)