Jump to content


Photo
- - - - -
Open

Force Page Layout Type Within A Custom Section Or In Functions.php For A Cpt



  • Please log in to reply
5 replies to this topic

#1 Clifford P

Clifford P

    Advocate

  • Members


  • 379 posts
  • LocationOklahoma
  • Country: Country Flag

Posted 21 October 2012 - 09:49 AM

Is there a hook or something I can put in a custom section that forces a full-width page layout (i.e. no right or left sidebars) if the site default layout has a sidebar area?

Or maybe just something to put in functions.php that says "if CPT type = 'myowncpt', force full-width page layout" ?

Thank you.

#2 Rob

Rob

    One Smart Egg

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

Posted 21 October 2012 - 03:53 PM

Unfortunately, this question speaks to a coding customization that requires the assistance of a professional web developer, experienced with PageLines and WordPress.

As much as I'm eager to assist, most of us are not trained coders, and thus we provide a group of developer pros at

Please Login or Register to see this Hidden Content



#3 Clifford P

Clifford P

    Advocate

  • Members


  • 379 posts
  • LocationOklahoma
  • Country: Country Flag

Posted 21 October 2012 - 04:46 PM

Simon or anyone else able to reply? Maybe point me to a developer documentation or video or just add some code here? Thank you.

#4 Jenny

Jenny

    Owned by PageLines

  • Unicorn Store Dev

  • 2917 posts
  • LocationWV
  • Country: Country Flag

Posted 30 October 2012 - 04:24 PM

Not sure if this will help but it's a start:

Please Login or Register to see this Hidden Content



#5 Clifford P

Clifford P

    Advocate

  • Members


  • 379 posts
  • LocationOklahoma
  • Country: Country Flag

Posted 30 October 2012 - 04:26 PM

Not sure how that helps since it's not PageLines-specific. Are there some PageLines hooks to tie into -- one or more hooks / examples to point me to?

#6 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 30 October 2012 - 04:43 PM

A hook wouldn't be useful in this case (a hook is for adding content to certain parts of a layout). The adjustment would need to be done with another customization in the code.