Jump to content
Sign in to follow this  
kevinweclikcom

Spotlight: Different text than Page Title?

Recommended Posts

kevinweclikcom

Hi, what is the best way to have the Spotlight area display differnt text than 'pagetitle'. For example, on the About page, to have the spotlight area text say "we are a very nice company". I see the _spotlight.php file, but not sure best way to alter the pagetitle

Share this post


Link to post
Share on other sites
Kate

First, I want to point out that in "Theme Options->Header and Nav" there's an option to change the title for the blog area spotlight. But, it doesn't sound like that's what you want, so... In the _spotlight.php file, you'll notice a series of if statements. In order to change the text for the about page, you'll need to alter this area:

<?php elseif(is_page()):?>
									<?php the_title(); ?>
Now: if you want the spotlight text for all pages to be a certain text, then you would simply change
<?php the_title(); ?>
to the text you want. However, if you only want to change the text on the about page, then your code would look like this:
	<?php elseif(is_page()):?>
	  <?php if(is_page('about')): ?>
	   Text you want to go in the spotlight
	  <?php else:?>
	<?php the_title(); ?>
	  <?php endif; ?>
	

I didn't try it out, but it should work just fine. If it doesn't, feel free to let us know and we can get it fixed up.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×