WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Search results, category pages, and profiles formatting

[Resolved] Search results, category pages, and profiles formatting

  • I am so frustrated about this! I cannot figure out how to fix this issue. I posted a couple weeks ago about this and no one responded so I’m going to word it differently in the hopes that someone, ANYone, can give me some assistance.

    There are three types of pages that are not displaying properly on my website. The home page, posts, and regular pages are fine, but the search results, category pages, and profile pages are not. Here are links to all three:

    Search results: http://theseattlevineproject.com/?s=art&submit=Search
    Category pages: http://theseattlevineproject.com/category/fine-art/
    Profile pages: http://theseattlevineproject.com/members/eckstein/

    As you can see, there are multiple things wrong, the most blatant being that the sidebar on the right is pushed below the content. Also, the padding/margins of the content area seem to be completely wrong compared to the regular pages on my site.
    I assume this has to do with which template is being loaded for those pages, but I am not at all good with PHP and when I look at the various template files, I really have no idea where to start. Can somebody give me a link or walk me through what I need to do to fix this? I’m desperate for a solution!!

    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • hockeyhero4
    Member

    @hockeyhero4

    You’re having div problems with your ‘secondary’ tag.

    The easiest solution:

    I’d make a duplicate of page.php. Gut the insides of the code (usually done by taking out what’s in between the MAIN div). Take the code for your search/category/profile pages and put them after the MAIN div.

    Hate to be so vague but hopefully that helps point you in the right direction.

    hockeyhero4
    Member

    @hockeyhero4

    Did a little more digging – the reason your sidebar is jacked up is because of these lines in your stylesheet:

    style.css (line 16)

    #content {
        float: left;
        margin: 0 34% 0 7.6%;
        width: 58.4%;
    }

    style.css (line 89)

    #content {
        margin: 0 34% 0 7.6%;
        width: 58.4%;
    }

    Remove both MARGINS to make it look like this:

    style.css (line 16)

    #content {
        float: left;
        width: 58.4%;
    }

    style.css (line 89)

    #content {
        width: 58.4%;
    }

    At the same point, I’m not sure what this will do to the rest of your site so perhaps creating a page template for these pages and then issuing the above changes may be the best approach.

    Christine Rondeau
    Volunteer Forum Moderator

    @crondeau

    If you hired someone to create this child theme for you, I would also go back to them and ask them to fix it. Looks like they didn’t test it fully.

    hockeyhero4
    Member

    @hockeyhero4

    Your category page is just messed up with a lot of widths and I see a problem with the absolute position here:

    element.style {
        left: 800px;
        position: absolute;
        top: 3427.42px;
    }

    Definitely remove that position: absolute then work on the width issues from your content and your sidebar

    hockeyhero4
    Member

    @hockeyhero4

    Christine – I see you’re a moderator. I’m not trying to be mean or rude but as a moderator, shouldn’t you offer some advice as opposed to telling someone something that seems common sense? As a moderator (and I understand your time is donated so don’t get me wrong in my approach) shouldn’t you offer some links, help, or direction to help this gentleman out other than telling him something he already knows in that it’s obviously not fully tested since it’s not functioning correctly?

    Thanks for responding hockeyhero! I’m going to try these suggestions and report the results here. I’m hopeful this may work. (I have to travel between my work comp and my home comp, so it will take a couple hours.)

    Christine: Thanks for the input. I did hire someone to make the child theme but that person was working pro-bono and does not have time to devote to working on this anymore (at least in a timely manner) which is why I’m turning for help here on the forum.

    z

    It worked!! I had to screw around with the content/primary/secondary divs for hours, but I finally got it to work on all pages. For some reason, there were some main divs that were set way bigger than the width of the site and had randomly large negative margins all over the place. This was causing the issue. I reigned everything in and the sidebar popped right up.

    Thanks so much for you help Hockeyhero!

    hockeyhero4
    Member

    @hockeyhero4

    You’re welcome. A tool that helps save time is downloading the Firebug extension tool if you have Firefox. Saves you the hassle of locating issues along with changing, uploading, changing, uploading a stylesheet. Try it out.

    Actually, that’s what eventually saved me! Firebug is awesome.

    Thanks again.

    Christine Rondeau
    Volunteer Forum Moderator

    @crondeau

    @hockeyhero4 the only reason I posted that comment was because you had already given him the answer and also, the developer who did this should know about this. It’s really not great to build a theme for someone and omit templates. It would be best if the developer learned about this. I know that as a developer, I would want to know.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] Search results, category pages, and profiles formatting’ is closed to new replies.