Jump to content
Sign in to follow this  
keyoung

Unique Text To Category Pages. Where To Paste Code?

Recommended Posts

keyoung

I would like to add the following code so that category pages can have unique text. But where do I put this code in platform? Where is the category page template? Thanks

<?php if (is_category('Category A')) { ?>
	<p>This is the text to describe category A</p>
	<?php } elseif (is_category('Category B')) { ?>
	<p>This is the text to describe category B</p>
	<?php } else { ?>
	<p>This is some generic text to describe all other category pages,
	I could be left blank</p>
	<?php } ?>

Share this post


Link to post
Share on other sites
kastelic

What I would do is enter your text in the category description box that is already available (Categories -> click on each category and edit description.) Then you simply use:

`<?php echo category_description(); ?>`

In Platform Pro you insert custom code like this using hooks. Here's the doc on that:http://www.pagelines.com/docs/base-child-theme

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  

×