• I have a website using TwentyEleven set up the way I want with the exception that I would like to have a different contact form on the inside pages than what I have on the home page. It would seem that I would need to set up a child theme, but the last time I tried that I ended up with a totally white website. Oops.

    Good thing I back up first.

    So is there a way to add a new template page to TwentyEleven, and how do I go about doing this. I am pretty good at copy/pasting, but not so good at heavy duty coding. Thanks for any help you can send my way.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You can make a template for one page, and then use it for a static front page. But … what do you mean a different contact form?

    Meanwhile here’s some info on child themes: http://codex.wordpress.org/Child_Themes

    Thread Starter jan@jsphotofx.com

    (@janjsphotofxcom)

    The contact form on the home page will be to download a free whitepaper, the contact form on other pages will sign you up for the enewsletter. Right now TwentyEleven only has 2 real styles of templates, the sidebar and showcase. I want to have a second sidebar template that will vary only in the widgets used. Unless there’s a better way of using different widgets on the same template that I’m not seeing?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Unless there’s a better way of using different widgets on the same template that I’m not seeing?

    Widget Logic – http://wordpress.org/extend/plugins/widget-logic/

    Dynamic Widgets – http://wordpress.org/extend/plugins/dynamic-widgets/

    Both of those let you control what widgets show on what pages 🙂

    Thread Starter jan@jsphotofx.com

    (@janjsphotofxcom)

    Yes, Dynamic Widgets did what I needed – so much nicer than having to do a child theme – THANK YOU for pointing this out to me.

    Now I need to find out how to put widgets on the posts – it’s always something….

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You need to use a child theme for that one, alas. Twenty Eleven doesn’t have sidebars in posts, which is where you widgets are.

    http://futurewebblog.com/add-sidebar-support-posts-twenty-eleven-theme/

    Thread Starter jan@jsphotofx.com

    (@janjsphotofxcom)

    Almost there. The sidebar shows up on the post, but it shows up under the bottom of the post. So if the post is 3″ long, the sidebar shows up starting 3″ down from the top. Now while I like white space, this can be a bit much, if there’s a long post. Is there a way to make this sidebar start at the top of the page?

    You should change the width of the primary class and the content class in style.css so the width of the sidebar, which is aligned to the right can move upwards. Now its pushed down by the two classes primary and content.

    Thread Starter jan@jsphotofx.com

    (@janjsphotofxcom)

    Ah yes, I had changed that in the parent CSS but forgot that it needs to be changed in the child, now that I’m using the child theme. Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘adding a different page template to TwentyEleven’ is closed to new replies.