WordPress.org

Ready to get started?Download WordPress

Forums

Oenology
[resolved] custom 2-column page template (5 posts)

  1. jknetdesign
    Member
    Posted 1 year ago #

    What file do I edit to create custom divs for the 2-column template?
    http://growersice.com/products/

    I tried this CSS with page ID.
    It's not taking it, but I would rather create a page template.

    .page-id-6 .layout-two-column #main {
      width: 610px;
    }
    .page-id-6 #main, .layout-three-column #main {
      margin-left: 350px;
    }
    .page-id-6 #leftcol {
      width: 288px;
    }
  2. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 1 year ago #

    What exactly are you trying to do?

    Note that the layouts aren't custom templates, but are implemented via custom post meta. It's all done via CSS from there, so if I have an idea of what you're trying to accomplish with the change, I can probably point you in the right direction.

  3. jknetdesign
    Member
    Posted 1 year ago #

    I'm not familiar with this post meta method. I just want to adjust the width and maargins of some of the divs on just this page.

    link

  4. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 1 year ago #

    If you just want to target Page ID 6, you just need to change your CSS selector slightly. Try this:

    #page.page-id-6.layout-two-column #main {}
    #page.page-id-6.layout-two-column #leftcol {}

    Note that #leftcol is positioned using a negative margin-left value.

  5. jknetdesign
    Member
    Posted 1 year ago #

    Got it thanks.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic