WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Search results, category pages, and profiles formatting (11 posts)

  1. Eckstein
    Member
    Posted 2 years ago #

    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.

  2. hockeyhero4
    Member
    Posted 2 years ago #

    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.

  3. hockeyhero4
    Member
    Posted 2 years ago #

    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.

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

  5. hockeyhero4
    Member
    Posted 2 years ago #

    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

  6. hockeyhero4
    Member
    Posted 2 years ago #

    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?

  7. Eckstein
    Member
    Posted 2 years ago #

    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

  8. Eckstein
    Member
    Posted 2 years ago #

    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!

  9. hockeyhero4
    Member
    Posted 2 years ago #

    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.

  10. Eckstein
    Member
    Posted 2 years ago #

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

    Thanks again.

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

Topic Closed

This topic has been closed to new replies.

About this Topic