• I built a WordPress site for a client about 1.5 years ago. It can be seen at https://www.robinsfdn.org.

    The uses a modified version of the Twenty Ten theme (not a child theme–sorry!). The footer has minimal content, so I opted not to use the footer widget areas, but to just hard code the content in. My footer.php file therefore contains:

    <div id="site-info">
    				<p class="footer-entry">&copy;<?php echo date("Y") ?> Robins Foundation</p>
                    <p class="footer-entry">10 S. 3rd Street, Richmond, Virginia 23219</p>
                    <p class="footer-entry">804-523-1144&nbsp;&nbsp;(F) 804-523-1150</p>
    			</div>

    Here’s my problem. I was asked to change the street address to a new one (the client moved). The new address appeared on the home page, but not on any other. The old address persists. I have searched the source code of every file in the theme (both my local copy and the live one) and there are zero hits on the words in the old address. It seems that there no longer exists the older “hard-coded” version of the address anywhere in the theme files.

    I have no recollection of having the footer content be content managed in any way, but to check, I’ve looked at the footer widgets in the dashboard (empty) and used an SQL database search plugin to see if the old address string appears there (it does not!).

    I’m at a loss to figure out what could be generating the HTML of the older address. I can’t find it in the php files and I can’t find it in the database. Where else could it be coming from? The site is hosted by Network Solutions if that has any relevance

    Any thoughts/hints/solutions! welcome, of course.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Since this is a custom theme created by you, I’m afraid you are the best person to locate the relevant file/code. There is no second footer file in the original 2010 theme. Nor any widgets other than those listed in Appearance -> Widgets.

    Thread Starter rdmckelvey

    (@rdmckelvey)

    I agree that it’s up to me to find it. But my problem is that it doesn’t seem to be in any of the php files (I downloaded the full live theme to a local copy and searched all the files for the older code). It seems it’s not in any of the files.

    The version of twenty ten I used as a basis had a file called “sidebar-footer.php” that has four footer widgets. As I said, I don’t think I ever used these, and they are empty if I look at the widgets in the Widgets page on the dashboard.

    Since I can’t find anything in the php files or, apparently the SQL database, I’m left wondering about some odd cached files somewhere or something.

    (I doubt this, but I’m starting to think along the lines of black magic…).

    My apologies for past decisions to alter code.

    Thanks!

    There is no evidence of a caching plugin being used in the generated pages of the site, so all I can suggest is that you contact the hosts and ask them if they employ any kind of caching. I have known this occur before.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't change footer!’ is closed to new replies.