WordPress edit theme headings

Posted on 2013-06-23
Last Modified: 2013-06-26
I have a site at in WP 3.5.2. The client would like to change the Sermons page in the main body to be titled "Messages" instead of "Archives" (although the sidebar Archives header is fine). I have searched through the theme editor files and through the css files without success to find and rename the header. I expect it to be editable in a css or php file, but which one?

Question by:MarkJulie
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
  • 2
  • +1
LVL 29

Expert Comment

ID: 39269960
log on to the admin -
click on appearance on the left hand side
click on menu
click on the menu tab that has the menu item "Sermons"   (maybe primary or top)
now click on the down arrow (triangle) on the right hand side of this ) menu item in the list called "Sermons" to show the details of this menu item.

on the line where it says "original" it will show you what it is that loads up when you press the menu item "sermons"   (I think its a Post)
then you need to look at the posts and rename the Archive  category to "messages"
LVL 70

Expert Comment

by:Jason C. Levine
ID: 39270172
chilternPC is probably right.  However, looking at the source code for the page, this menu appears to be the result of a plugin or possibly a theme "feature" and possibly not the WordPress Custom Menu as he described in his solution.

If you can't get anywhere with the first solution, look for something called "UberMenu" in the Installed Plugins list or the Settings and see if you get any farther.

Author Comment

ID: 39270174
When I open Appearance -> Menus as you directed, I cannot find any tags for Original. Here is what I view.

Screenshot of Appearance -> Menus
I have browsed thorough the Posts settings and theme files finding nothing to edit. This is the Skematik theme. Its customization also does not show this area to be editable.
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

LVL 70

Expert Comment

by:Jason C. Levine
ID: 39270180
Ah-ha, sorry.  Both chilternPC and I thought you wanted to edit the menu...

The text you are looking for could be hiding in a number of places depending on how the theme is built and has been altered.

1) "Sermons" is either a Category or a Custom Post Type in WordPress and you need to switch over to Appearance | Editor and see if there is a single.php file or potentially single-sermons.php.  From there, you should see "Archives" somewhere in the code.

2) Your theme could be making use of the get_template_part() function to dynamically build template pages.  If so, it will be relatively obvious as you examine single.php on step 1 as you will see that function all over the place.  get_template_part() works kind of like include()'ll need to follow the references from each one until you find the code that has "Archives" in it.

Author Comment

ID: 39270188
So, Sermons is a plugin called Sermon Manager which is then added to the Menus area. It has no editable topic headings. Is there an efficient way to browse all the WP files in my ftp account to find "Archives" on some php page for this site?
LVL 70

Expert Comment

by:Jason C. Levine
ID: 39270207
Is there an efficient way to browse all the WP files in my ftp account to find "Archives" on some php page for this site?

Depends on how spiffy you are using find or grep commands, but you don't have to do it that way.  The text will be in only one of two places:

1) In the theme files for the current theme, usually under single.php.  Might also be archive.php...depends on the theme.

2) In the plugin files for Sermon Manager somewhere (unlikely).

I'm browsing through the plugin files now and I don't readily see the text, which makes me think the plugin is just sending you back to single.php in this case. The problem here is that if you change the theme file, you are probably changing it for ALL post categories and custom post type taxonomies and that's probably not what you want to do.

If your theme has archive.php, the best course of action would be to copy it to archive-wpfc_sermon.php and then edit it from there.  The WordPress template hierarchy will automatically pick up that file when the archive request is made for that post type.

Author Comment

ID: 39270245
There appears to be no single.php. Archive.php shows:
 * The main template file.
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more:
 * @package skematik
 * @since skematik 1.0

	<div id="primary" class="site-content <?php skematik_content_span(); ?>">
		<div id="content" role="main">
		<?php if ( have_posts() ) : ?>
				<?php get_template_part( 'content', 'archive' );?>
		<?php else : ?>
		<?php get_template_part( 'no-results', 'content' ); ?>
		<?php endif; ?>
		</div><!-- #content -->
	</div><!-- #primary .site-content -->
<?php get_footer(); ?>

Open in new window

Since I see a get_template_part(), does that call archive.php (a call to self), content.php, or something totally different? If so, your expert advice is quickly getting over my php head requiring much more expertise than I currently have (unless you are willing to provide baby steps).
LVL 70

Accepted Solution

Jason C. Levine earned 300 total points
ID: 39270335
The line we want is:

<?php get_template_part( 'content', 'archive' );?>

Open in new window

You should have a file called content-archive.php in the theme somewhere.  If not, look for content.php.

By the same token, the second get_template_part:

<?php get_template_part( 'no-results', 'content' ); ?>

Open in new window

Will be looking for either no-results-content.php or no-results.php

your expert advice is quickly getting over my php head

Meh.  This isn't that bad once you learn what the function does and how it behaves:

The first link is an excellent tutorial and the second is the somewhat sparse WordPress Codex link.

Another good read on this topic is:

Honestly, this would have been a lot easier if you were using a non-premium theme.  I could have just downloaded it instead of playing 20 questions :)
LVL 29

Expert Comment

ID: 39270730
going back to my first reply - I know "original" wasn't there but what appeared when you clicked on "Ubermenu options" ?

it may show the word "archive" which you could easiely change to Messages ;-)

I think the cleanest option might be to ask the suppliers of the premium template you bought. I'm sure they provide free advice
LVL 70

Expert Comment

by:Jason C. Levine
ID: 39271694
This isn't a menu issue.  The asker wants to change the title of the page that comes up when the Sermons menu item is clicked.  We're in the theme templates, pure and simple.
LVL 15

Expert Comment

ID: 39276712
Try this:
In your WordPress Dashboard
Go to Sermons > Settings
to show the Sermon Manager Options

In General Settings, as Archive Page Title type: Messages

Author Comment

ID: 39277006

Per Jason1178 and my experience, Archive Page Title has already been modified and doesn't change the content or the name of the header on the page, just the menu title.


I am working with the plugin developer to modify archive.php or one of the other appropriate files along the lines you suggested and with which he agrees.
LVL 15

Assisted Solution

eemit earned 200 total points
ID: 39277466
No need to edit any file, just copy yet the file:
to your theme folder.

You should get this:
Sermons Archives

Author Comment

ID: 39280268
The plugin developer's solution was to add a few lines to content-archive.php.
elseif ( is_post_type_archive( 'wpfc_sermon' ) ) {
                $sermon_settings = get_option('wpfc_options');
                $archive_title = $sermon_settings['archive_title'];
                          $archive_title = 'Sermons';
echo $archive_title;

Open in new window

I will save the support provided and try it for other similar situations requiring customization. Thank you.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS style formatting? 2 62
How do I Enable submit button only if listbox has items 4 64
Table header must be on top 2 57
Undefined variable with $_POST in PHP 5 40
This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question