WordPress.org

Ready to get started?Download WordPress

Forums

adding a different page template to TwentyEleven (9 posts)

  1. jan@jsphotofx.com
    Member
    Posted 3 years ago #

    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.

  2. 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

  3. jan@jsphotofx.com
    Member
    Posted 3 years ago #

    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?

  4. 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 :)

  5. jan@jsphotofx.com
    Member
    Posted 3 years ago #

    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....

  6. 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/

  7. jan@jsphotofx.com
    Member
    Posted 3 years ago #

    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?

  8. dorothai
    Member
    Posted 3 years ago #

    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.

  9. jan@jsphotofx.com
    Member
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic