Jump to content


Photo
- - - - -

Customize plugin functions.php is not taking effect


  • Please log in to reply
3 replies to this topic

#1 shannoga

shannoga

    Member

  • Members

  • 18 posts
  • Country: Country Flag

Posted 29 February 2012 - 10:03 AM

Hi

I am trying to add custom post type to function.php in the Customize plugin.

Please Login or Register to see this Hidden Content


The code is working great when I am moving the code to the "functions.php" in the pagelines theme.

All other fiels are working well (css custom pages etc.).

What could be the problem?

Thank you
Shani

#2 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 29 February 2012 - 10:12 AM

The code works if you put it into the base child theme. The customize plugin probably gets included too late. BTW you have two add_action lines in your code.

#3 shannoga

shannoga

    Member

  • Members

  • 18 posts
  • Country: Country Flag

Posted 29 February 2012 - 10:22 AM

Do you say that I can not use it to add those without base theme ?

#4 Jenny

Jenny

    Owned by PageLines

  • Unicorn Store Dev

  • 2917 posts
  • LocationWV
  • Country: Country Flag

Posted 29 February 2012 - 04:19 PM

I believe what he said is that it's not working because it's not loading soon enough in the theme files. Enabling the base theme is essentially the same thing as customize. Just move all your custom code over.