Archived

This topic is now archived and is closed to further replies.

  • 0

ContentBox Content dynamic

Question

Posted · Report post

Hi,

I've a ContentBox to display some text (header) in my Category page before the PostLoop.

How can I change the text according to Category displayed?

Example:

If I'm in CatA page, I want the text in ContentBox to be CatA, and if I enter CatB page, I want CatB txt in the ContentBox.

 

Is this possible?

<?php if (is_category('CatA')) : ?> wont work.....

Share this post


Link to post
Share on other sites

4 answers to this question

Posted · Report post

My first recommendation is to read the documentation, thoroughly. http://support.pagelines.me/docs/plugins/pagelines-customization/

 

A hook is added to functions.php in the PageLines Customize plugin.  It allows you to add PHP code.

 

The Action Map plugin (free in our Store) will help you to identify the proper hook to use to add your function (the PHP).

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

I don't think the Content Box can do that task you're suggesting.

 

You may want to create a custom section or, a hook. 

Share this post


Link to post
Share on other sites

Posted · Report post

Hi, 

so how can i manage this?

Changing the category.php file?

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks a lot!

I solved it with a hook!

Always learning....

Share this post


Link to post
Share on other sites