I’ve inherited a WordPress website, and I’m trying to figure out how to change an image in the “header” of one of the pages. It appears that I should be able to do this via the **Pages** using the template that was already set up. Updating an item in template does not appear to be updating the rendered page. Here is some additional information I’ve dug up.
In the themes directory, there are 3 directories **mycompany\_1\_1**, **mycompany\_1\_1-child** and **twentytwentyone**. When I view the themes under the **Appearance** page, I see that the active theme is **mycompany\_1\_1-child**, which has a message stating that it is a child of the **mycompany\_1\_1** theme.
I traced the header image in the page to a file in one of the theme directories, **header.php**, which contains the code:
$options = get_option(‘klaus’);
The $options variable is then used for setting the url for several images in the page, including the logo. i.e. <img src=”<?php echo $option\[‘logo’\]\[‘url’\] ?>” />
I cannot for the life of me figure out where the ‘klaus’ options are coming from. I’ve grepped all of the files in the theme directory for ‘klaus’, and all I see are other references to get\_option(‘klaus’).
I then grepped the parent theme directory, and found in functions.php,
define(‘AZ_THEME_NAME’, ‘klaus’)
That led me to search for AZ\_THEME\_NAME, and I found references to it in a folder of the parent theme under **./framework/meta/page-meta.php**, which appears to be setting up the templates that can be used via **Pages** screen for the page in question.
When I open the page in question under **Pages**, there are several sections which appear to allow the setting of some of the elements on the page. These seem to correlate to sections set up in the **page-meta.php** file. I see a section called **Page Header Settings**, with a place to set **Page Header Image**.
Changing this image does not update the page though.
As a matter of fact, it seems like changing anything in the **Pages** page for this page does not impact the rendering on the server.
Any thoughts on what is going on here, or some hints on how to trace this down?
​
[ad_2]
get_options is usually set in the global theme options page – which can be found generally in places like Appearance > Customize, or its own menu.
Does the site have caching set up in some way?
I don’t *think* you’re asking this but the value itself is coming from the ?_options table in the database. You could query with phpmyadmin it to make sure your changes are being saved.