Jump to content
Sign in to follow this  
greggsky

Changing wording of Archive title

Recommended Posts

greggsky

How do you go about changing any of the default wording, e.g. on the category archive page is says "Currently viewing the category: " before the title...and the title is in quotes. What if I just want it to say "Title of the Catagory"?

Share this post


Link to post
Share on other sites
kastelic

You can't do this from the Pagelines controls, you have to go into the template files and know a little about wordpress functions.

Share this post


Link to post
Share on other sites
greggsky

Which files, I'm not totally familiar with the pagelines structure. Is there any way to override the files in my child theme so I can still easily stay current with platform pro?

Share this post


Link to post
Share on other sites
Guest Guest

The file that controls this is located in /sections/wp and is called section.postsinfo.php This appears to be the section to edit:

<?php elseif(is_category()):?>
						<?php _e("Currently viewing the category:", 'pagelines');?>
						"<?php single_cat_title();?>"[/code]

Share this post


Link to post
Share on other sites
greggsky

Thanks Tyler. So, it doesn't appear to override if I save a copy of the file to my child theme and make changes. Correct? And therefore, there's no way to change how this page displays without changing the platformpro code directly?

Share this post


Link to post
Share on other sites
greggsky

With 1.3.* and the Overriding Section Templates features, this should be possible now? The instructions aren't terribly clear and I don't know the difference between Section Templates and Sections. I've tried adding a modified "section.postsinfo.php" to my child theme, but the changes don't appear. Assuming this is a different thing than the updated feature described here: http://www.pagelines.com/docs/custom-sections

Share this post


Link to post
Share on other sites
Sourena

Another solution: 1. Hide the current "Currently viewing the category:" by CSS (set it to "display:none") 2. Add this function to your child theme's "functions.php":

/* Adding new category titles. The default category title is hidden using CSS (.current_posts_info). */
	add_action('pagelines_inside_top_theloop','cat_title');
	
		function cat_title(){?>
		 	<?php if (is_category()):?>
	       		<h1 class="pagetitle"><?php echo single_cat_title(); ?></h1>
			<?php endif;
		}
	
	/* Adding new tag titles. The default tag title is hidden using CSS (.current_posts_info). */
	add_action('pagelines_inside_top_theloop','tag_title');
	
		function tag_title(){?>
		 	<?php if (is_tag()):?>
	       		<h1 class="pagetitle"><?php echo single_tag_title(); ?></h1>
			<?php endif;
		}


alefba.us

Web Development & Design for Right-to-Left languages

Share this post


Link to post
Share on other sites
cmunns

Also, to override the template itself. You would simply copy what is inside of the template_section() function in the original file. Then when you create the Base file call it template.postsinfo.php instead of section.postsinfo.php Hopefully that clears it up a bit.

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  

×