WordPress.org

Ready to get started?Download WordPress

Forums

Problem with page template, shows differently on different pages (5 posts)

  1. mpmacken
    Member
    Posted 2 years ago #

    Hi, I hope someone will respond to my question (unlike the last time I posted). I have two pages, "home" (static) and "News and Announcements" (posts page)that are both using a home.php template I created. The news and announcements page looks nearly perfect, but the home page is not right. see: http://velocityvolleyballclub.org/news-and-announcements/ and http://velocityvolleyballclub.org/ I do not understand how this is possible, if they're both running from the same page template? Is there something I need to change in functions.php or style.css to have them display correctly? I can provide more detail, but wanted to be brief. THANKS for any help!

  2. rcmck
    Member
    Posted 2 years ago #

    The problem is most definitely in` your styles. And here's where:
    line 242

    .custom-layouts.singular #content {
        margin: 0 7.6%;
        position: relative;
        width: auto;
    }

    Is overriding your width and margin settings that you have for the #content element on your homepage, line 152:

    .three-column #content {
        margin: 0 34% 0 26.4%;
        width: 40.4%;
    }
  3. mpmacken
    Member
    Posted 2 years ago #

    Thanks! So which do I need to change?

  4. rcmck
    Member
    Posted 2 years ago #

    The first one is the one on the messed up page.

  5. mpmacken
    Member
    Posted 2 years ago #

    Hum, that seems odd to me, because the first one is supposed to be for a custom layout, like if I choose a one-column template, there are several "custom" layout options in my stylesheet, but those aren't interfering? What is incorrect about the first one, that is making is mess up my three-column template page? THANKS!

Topic Closed

This topic has been closed to new replies.

About this Topic