I'm following Chris' Wordpress tutorials and I'm stuck and I need some advice.
I've come to the side bar and I'm emptied it, like Chris does in the tutorial and I'm having problems customising it. (Also, I'm guessing there is probably an easier way to do this.)
Anyhow, I attempted to create some links and insert images inside the anchor tags but it doesn't display the images. It does when I link to an external source though.
if you are sure the file location is right - try adding the full path http://www.yourwebsite.com/images/image1.png and see if it can find it then, if it can you know your path is actually wrong, if it can't then the image either isnt there or called something else. :)
possibly something to do with the way wordpress builds the theme. Because it pulls all info from your theme folder into the index.php - if you had a folder in your wordpress called images it would work, but you might have to use /wp-content/themes/starkers/images/image.jpg to call an image as your page will be built and desplayed from the index.php on your wordpress folder, and not from within your theme directory.
I'm following Chris' Wordpress tutorials and I'm stuck and I need some advice.
I've come to the side bar and I'm emptied it, like Chris does in the tutorial and I'm having problems customising it. (Also, I'm guessing there is probably an easier way to do this.)
Anyhow, I attempted to create some links and insert images inside the anchor tags but it doesn't display the images. It does when I link to an external source though.
Here's what I'm using:
What's confusing me is the src link is definitely correct because this works :
With the following CSS:
Can anyone help!
I'm guessing it's probably me being dumb but I can't figure this out.
TIA!
http://localhost/wordpress/wp-content/t ... /logob.png
How come the shortened version doesn't work like it does with CSS?
I'm confused :o
Anyhow, that'll do for now.
Cheers.
The following CSS works fine:
background: url('images/logo.jpg')That's why I don't understand why I can't do this:
Instead of this:
if that makes sense?
<?php bloginfo('template_directory'); ?>
For example:
<src="<?php bloginfo('template_directory'); ?>/images/image.jpg"/>
<script src="<?php bloginfo('template_directory'); ?>/js/functions.js" type="text/javascript"></script>
Just a bit easier than what I was using previously, plus if I rename my theme directory I won't have to edit a dozen or so links.