Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Bad calling for the files #1

Merged
merged 1 commit into from

3 participants

@nicoandrade

Updated the way that files are called, now using "<?php echo get_template_directory_uri(); ?>" if not there will be problems with the name of the Theme's folder.

Forcing you to use "pears" as folder name

@nicoandrade nicoandrade Updated the way that files are called, now using "<?php echo get_temp…
…late_directory_uri(); ?>" if not there will be problems with the name of the Theme's folder.

Forcing you to use "pears" as folder name
ae41a0a
@simplebits simplebits merged commit 8a1d344 into simplebits:master
@simplebits
Owner

Thanks for the fix!

@Mamaduka

We have same situations with images, they need fix too.

@nicoandrade

Exactly, this fix needs to be done in several places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 6, 2012
  1. @nicoandrade

    Updated the way that files are called, now using "<?php echo get_temp…

    nicoandrade authored
    …late_directory_uri(); ?>" if not there will be problems with the name of the Theme's folder.
    
    Forcing you to use "pears" as folder name
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 header.php
View
4 header.php
@@ -8,7 +8,7 @@
<!-- hide css from IE6 but load for everyone else -->
<!--[if gte IE 7]><!-->
-<link rel="stylesheet/less" media="screen, projection" href="/wp-content/themes/pears/css/screen.less" />
+<link rel="stylesheet/less" media="screen, projection" href="<?php echo get_template_directory_uri(); ?>/css/screen.less" />
<!-- <![endif]-->
<link rel="shortcut icon" href="/favicon.png" />
@@ -18,7 +18,7 @@
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
-<script type="text/javascript" src="/wp-content/themes/pears/js/less.js"></script>
+<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/less.js"></script>
</head>
<body <?php body_class(); ?>>
Something went wrong with that request. Please try again.