Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] Problems with dynamic links


  #1  
Old Jan 9, 2011, 03:15 AM
rjh4242
 
5 posts · May 2010
I have been trying to replace my hardcoded links with dynamic ones, preparatory to moving hosts.

For example, I am using:

Code:
background: #ffffff url(/rogo/httpdocs/wp-content/themes/atahualpa/images/rogo/bg01.jpg);
in the Body Style box. This works perfectly, giving me the background image as intended.

However if I replace it with:

Code:
background: #ffffff url(<?php echo get_bloginfo('template_directory'); ?>/images/rogo/bg01.jpg);
which I think should give the same result, I get a black background and no image. I'm assuming that this means that Wordpress can't find the image, so something is wrong with my use of the function.

I have copied the php function into the footer content to test it, and when used there it comes up with the right directory - http:// localhost/rogo/httpdocs/wp-content/themes/atahualpa (the extra space is just to stop this post coding the link automatically as a URL). But for some reason the function doesn't seem to be working correctly when I put it in a link.

What am I doing wrong? All suggestions welcome!

Last edited by rjh4242; Jan 9, 2011 at 03:22 AM. Reason: set code tags and stop link being coded as URL
  #2  
Old Jan 9, 2011, 04:39 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
hold off on using 3.6 for the moment. you can manual install 3.5.3 (http://forum.bytesforall.com/showthread.php?t=8520) and activate it (having it in a folder called atahualpa353) and have 36 installed at the same time. Just switchback to 3.5.3 till the issue with 3.6 is figured out.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 10, 2011, 12:10 AM
rjh4242
 
5 posts · May 2010
Aha, I hadn't realised it was a 3.6 related problem. Gone back to 3.5.3 as suggested and it works perfectly.
Thanks

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Dynamic Content Gallery koinonos Plugins & Atahualpa 7 Aug 18, 2010 05:35 PM
Dynamic Logo madfab685 Header configuration & styling 0 Oct 31, 2009 05:31 AM
[SOLVED] Dynamic Tagline madfab685 Header configuration & styling 2 Aug 16, 2009 11:56 AM
Do not upgrade dynamic headers - help! krystyna Plugins & Atahualpa 9 Aug 10, 2009 10:30 AM


All times are GMT -6. The time now is 07:49 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.