Make WordPress Core

#23209 closed enhancement (wontfix)

Template pages to override Twenty Eleven theme layout for next update.

Reported by: theBrettman Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5
Component: Bundled Theme Keywords: close
Focuses: Cc:


Need to add a function to override theme_layout for certain pages in a theme. They could use the function in their functions.php to test for whatever page template they like and you could have a conditional for it where you set $current_layout in twentyeleven_layout_classes. This way, you could set individual page templates to different layouts. Also include 3 default layout page templates so they can see how the function is used but you could make your own page templates to use it as well.

Change History (5)

comment:1 lancewillett14 months ago

  • Keywords reporter-feedback added; needs-patch removed

I'm not sure I understand this request. Wouldn't all those various layouts be doable with a child theme?

comment:2 DrewAPicture14 months ago

  • Cc xoodrew@… added

This sounds a lot like wanting page templates (layouts) for your page templates.

comment:3 obenland14 months ago

  • Keywords close added

There are already two body classes for individual page templates: page-template-{template-file-name} and template-{template-slug}.
I don't really see a need for additional custom ones.

comment:4 obenland14 months ago

Let me correct that: One body class: page-template-{template-file-name}. Which should still be sufficient though.

comment:5 lancewillett14 months ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.