Jump to content
hugo2808

ContentBox Content dynamic

Recommended Posts

hugo2808    1
hugo2808

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
Rob    547
Rob

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. 


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
hugo2808    1
hugo2808

Hi, 

so how can i manage this?

Changing the category.php file?

Share this post


Link to post
Share on other sites
Rob    547
Rob

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).

  • Like 1

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
hugo2808    1
hugo2808

Thanks a lot!

I solved it with a hook!

Always learning....

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


×