erow80
Forum Replies Created
-
Thanks, esmi. I was able to change the URLs in the pages, but was hoping for a more comprehensive solution. I’ll look into the Search & Replace plugin.
Forum: Themes and Templates
In reply to: custom page template: img src doesn’t functionWorks great, thanks! Now for the jQuery….
Forum: Fixing WordPress
In reply to: Images not showing up in page templateHere’s a solution, thanks to t31os_ re: my other post:
I never used stylesheet directory, i always use (not that it should matter).
<?php bloginfo(‘template_directory’); ?>/images/someimage.gifSuch a path resolves to ..
https://www.yoursite.com/wp-content/themes/YOURTHEME/images/someimage.gifForum: Themes and Templates
In reply to: custom page template: img src doesn’t functionThanks t, I’ll look into that and post results here. I haven’t had a chance to look into it just yet. I think it is starting to make sense.
Forum: Themes and Templates
In reply to: custom page template: img src doesn’t functionThanks for the input. Do you happen to have any resources, examples or any idea of what I can search for in the Codex to help figure this out? There may be a solution here, but I can’t get it working:
From that link, the post says that this bit of code worked for them:
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/hr.gif" alt="test">
As for the jQuery, it’s hard to say if that’s working at all because no images are loading and that’s the main function of this plugin.
Forum: Fixing WordPress
In reply to: Images not showing up in page templateI just created another post describing a similar (but more involved) issue. Here it is:
I wanted to go a little more in depth here. I’ve created a static homepage that will show a series rotating background images. When I set a background image in the css, it loads said image on the homepage. However, when I try to embed the file in the php as such:
<img src=”images/background1.jpg”/>
I get nothing. To further complicate matters, I am planning on using jQuery for this task, specifically the plugin called Supersized. I created a page called “supersized.php” and loaded that independent of WP for testing, and it works flawlessly. However, I added the snippet:
<?php include(‘supersized.php’);?>
into my custom template page and the CSS functions properly but none of the images load. I am just getting back into WP, and don’t know much PHP, but I am rather comfortable with CSS and HTML. It seems to me there is conflict with WP and using <img src/> tags. Can anyone confirm or deny this?
Also, I am testing locally so unfortunately I can’t provide a link for viewing. I can provide additional code or try to explain my process better if needed.
I am running WP 2.8.1 with the Corporate Sandbox theme.
Thanks much,
EricForum: Fixing WordPress
In reply to: Images not showing up in page templateI am also having this problem, and have checked multiple times that the images are linked correctly. If it helps, I am running WordPress 2.8.1 with the Corporate Sandbox theme.