Jump to content


Photo
- - - - -

Where is page.php in Pagelines Framework?

Framework page.php

  • Please log in to reply
3 replies to this topic

#1 gabriel1937

gabriel1937

    Member

  • Members
  • 20 posts
  • Country: Country Flag

Posted 04 August 2014 - 02:33 PM

Hello,

 

I have installed the plugin "Multiple Post thumbnails" which requires some code to be added to "functions.php" file (which I've done) and also to the page template - which I can't find at all in the Pagelines editor.

 

Is there an equivalent that I'm missing?

 

Please help!

 

Many thanks.

 

Phil



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 16342 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 05 August 2014 - 10:55 AM

HI Phil,

 

PageLines Framework isn't like your typical theme and therefore, if you want to include some snippet of code into a page, you're going to need to use a hook. You can find more information here - 

Please Login or Register to see this Hidden Content



#3 gabriel1937

gabriel1937

    Member

  • Members
  • 20 posts
  • Country: Country Flag

Posted 05 August 2014 - 11:39 AM

Hi Danny,

 

Where does the hook go? page.alpha.php? single.php?

 

It's not clear in the documentation.

 

Phil



#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 16342 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 05 August 2014 - 12:12 PM

All hooks both actions and filters always go in the child themes functions.php file. This information is mentioned on our docs.

 

Please Login or Register to see this Hidden Content

 

What you're going to need to do is use your hook to position the code and then use some of the conditionals provided by WordPress to target a specific page.

 

Please Login or Register to see this Hidden Content







Also tagged with one or more of these keywords: Framework, page.php