Jump to content


Photo
- - - - -

ContentBox Content dynamic


Best Answer Rob , 29 June 2013 - 12:46 PM

My first recommendation is to read the documentation, thoroughly. http://support.pagel...-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).

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 hugo2808

hugo2808

    Advanced Member

  • Members
  • 42 posts
  • Country: Country Flag

Posted 29 June 2013 - 01:35 AM

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



#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 29 June 2013 - 12:23 PM

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. 



#3 hugo2808

hugo2808

    Advanced Member

  • Members
  • 42 posts
  • Country: Country Flag

Posted 29 June 2013 - 12:30 PM

Hi, 

so how can i manage this?

Changing the category.php file?



#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 29 June 2013 - 12:46 PM   Best Answer

My first recommendation is to read the documentation, thoroughly.

Please Login or Register to see this Hidden Content

 

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


  • hugo2808 likes this

#5 hugo2808

hugo2808

    Advanced Member

  • Members
  • 42 posts
  • Country: Country Flag

Posted 01 July 2013 - 10:07 AM

Thanks a lot!

I solved it with a hook!

Always learning....