Jump to content

Archived

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

gabriel1937

Where is page.php in Pagelines Framework?

Recommended Posts

gabriel1937    0
gabriel1937

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

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

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 - http://support.pagelines.me/docs/customization/hooks/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
gabriel1937    0
gabriel1937

Hi Danny,

 

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

 

It's not clear in the documentation.

 

Phil

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

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

 

https://cloudup.com/ce_jPGs0lA2

 

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.

 

http://codex.wordpress.org/Function_Reference/is_page


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • dougalperman
      By dougalperman+
      Hi there,
      I'm a big fan of Pagelines, and have been for years.
      I'm trying to control the size of video embeds and having some difficulty. I see that I can just paste the Vimeo video URL into the post and an embed widget will automatically appear, which is great. But the embed box created is much taller that the video (689 x 1000 pixels) so the content sits in the middle of a tall black box, which looks awkward.
      I tried using the full iFrame embed code from Vimeo, which solved the disproportionate embed frame size (or aspect ratio) issue, but despite specifying the dimensions I want (690 x 388), the videos displayed on the post are sized at 300 x 150 pixels.
      I can't work out how to change either.
      I'm using the latest version of Pagelines Framework (Pro) with the Agency them.
      Any help or advice very much appreciated.
      Thanks,
      Dougal
    • micstepl
      By micstepl+
      What is actually framework?
      - is ist that, what we used some years ago?
      - dös it replace DMS2?
      Usage
      - can I use framework beside of DMS2?
      - how do they relate?
    • almanada
      By almanada+
      2 year DMS Framework Dev Member here:
      Nothing is saving on our websites, our Key is no longer registering, emails have gone unanswered.  The DMS theme seems to be overall malfunctioning.   I just want it to work like it worked last week again please. Also, based on our your website is looking, it's also falling apart. Please Advise ASAP!  Our clients have a much shorter temper with us, because we actually offer a way to contact us.  We have reinstalled the latest theme over and over. 
    • oksodavid
      By oksodavid
      I can activate Framework 5.0.2 as stand alone theme ok. I get dashboard notice 'You need PageLines Connect' which is superseded by pl-platform - connect plugin.
      If I activate pl-platform 5.0.3, I get the 'total_pages' js error mentioned in pl-platform 5.0.2 plug and can't load Extend.
      I loaded PageLines Platform Developer 0.5.1, and dev loads ok.
    • OBXLynn
      By OBXLynn
      I hope someone can help me with this. I have added a GIF image to my Features - www.101thingsobx.com. The image contains changing copy. However, it doesn't seem to be working right. I have this same GIF on a different website (not WordPress-based - www.obx.com) and it is functioning correctly. Is there something I need to change in settings to allow the copy to work properly?
       
      Thank you for any help you can offer.
×