i got a custom template with blog post in it...
In my header.php, inside the <head>
i have my links like this ...
<link href="http://www.mysite.com/css/design.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="http://www.mysite.com/js/myjs.js"></script>
those links are working in my custom template.. by using
<?php get_header(); ?>
All blog post in my custom page are there.. no layout problems.
But when i click one of the post. my layout is broken. and when i checked it via Inspect Element. the link is like this
<link href="http://www.mysite.com/blog/css/design.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="http://www.mysite.com/blog/js/myjs.js"></script>
My custom template and single.php are both using
<?php get_header(); ?>
means that they are using*** EDIT *** from the answers below, above is my original question, anyway my problem is still the same header right?.
I added this to my functions.php and removed the links on my header.php also i copied the files inside the wordpress folder called links...
/httpdocs/blog/wp-content/themes/myblog/links
// Get Links
function theme_scripts_styles() {
wp_enqueue_style( 'my-styles', get_stylesheet_directory_uri() . '/links/design.css', array(), '1.0', 'all' );
wp_enqueue_script( 'my-scripts1', get_stylesheet_directory_uri() . '/links/cufon-yui.js', array(), '1.0', true );
wp_enqueue_script( 'my-scripts2', get_stylesheet_directory_uri() . '/links/232MKSD_200.font.js', array(), '1.0', true );
wp_enqueue_script( 'my-scripts3', get_stylesheet_directory_uri() . '/links/232MKSDB_400.font.js', array(), '1.0', true );
wp_enqueue_script( 'my-scripts4', get_stylesheet_directory_uri() . '/links/fonts.js', array(), '1.0', true );
wp_enqueue_script( 'my-scripts5', get_stylesheet_directory_uri() . '/links/OpenSans_400.font.js', array(), '1.0', true );
wp_enqueue_script( 'my-scripts6', get_stylesheet_directory_uri() . '/links/OpenSansSB_600.font.js', array(), '1.0', true );
}
add_action( 'wp_enqueue_scripts', 'theme_scripts_styles' );