Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 4 months ago

#23209 closed enhancement (wontfix)

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

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

Description

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)

#1 @lancewillett
11 years 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?

#2 @DrewAPicture
11 years ago

  • Cc xoodrew@… added

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

#3 @obenland
11 years 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.

#4 @obenland
11 years ago

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

#5 @lancewillett
11 years 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.