I am getting an problem where I've got a local Wordpress install on my small Ubuntu machine using XAMPP and I am attempting to focus on a style on your own. However , any path in index.php that's supposed to consult other files within the same folder (e.g. <link rel="stylesheet type="text/css" href="style.css">) should really indicate the CSS file within the same folder (/opt/LAMPP/htdocs/blog/wp-content/themes/mytheme).

Rather the file does not load and my browser discloses it's not found. It works out my browser is searching in place within the /blog folder. So for my page to load correctly, I must move everything there, or possess the pathways descend.

This really is incredibly annoying because I've my XAMPP server setup with similar hierarchy as my website will have, and I'd rather not need to hands-edit my pathways so it works enjoy it should on my small primary website. Does anybody understand how I'm able to fix this to ensure that XAMPP/Wordpress will turn to load the theme in the /mytheme folder?

I usually make use of the following line when i wish to reference something within the styles directory:

<?php echo get_bloginfo('template_directory') ?>

For instance if i wish to load a method sheet found in mytheme/css i actually do the next:

<link rel="stylesheet" type="text/css" href="<?php echo get_bloginfo('template_directory') ?>/css/stylesheet.css">

Hope this can help.