style on Search page

Community Forums Forums Design Tips and Tricks style on Search page

This topic is: not resolved

Tagged: , , ,

This topic contains 3 replies, has 2 voices, and was last updated by  cdils 1 year, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11163

    majecdad
    Participant
    Post count: 8

    Hi all,

    Any guidance on how to style specifically the search archive page?  I tried:

    .post-466.page.type-page.status-publish.hentry.category-staff.entry {
    background: url(images/line.png) bottom repeat-x;
    margin: 0 0 25px;
    overflow: hidden;
    padding: 0 0 25px;
    }

    which works to correct the issue in that specific search, for that specific post, but of course is useless once a search term is changed and different posts are displayed.

    So I guess my question is, what did I do wrong in that code, and how do I make it where EVERY post that displays on a SEARCH  archive page specifically is styled the same way?

    Thanks!

    #15289

    cdils
    Participant
    Post count: 421

    Hey there,

    Still needing help? Can you post a link to your search archive page?

    Thanks,

    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    #15713

    majecdad
    Participant
    Post count: 8

    Hi Carrie.

    Thank you for your reply. I have gone in another direction with this challenge. I used David Decker’s Widgetized Archive plugin to create a new archive page structure, and used Nick’s NavMenu Amp plugin to send those cats to the new page, which allowed me to use a default Genesis format for the search page results, which was fine. The problem I was having was that the default Genesis setup makes search, archive, etc… all formatted (content/limit vs. excerpt) the same, and I wanted to format some differently.

    If you have any follow-up guidance for how to accomplish what I was looking to do though, please share as a reference for others.

    Thanks again. Your reply returns some semblance of faith in the “new and improved” forums structure. As a four-year customer way back to the Revolution/ProPlus days, I am quite disappointed in the way the new “support” is structured. At least I have four years of trial and error, if I was new to WordPress/StudioPress now, I question whether I would buy, as the support forum was the key factor in my purchase.

    Have a great day!

    Mitch

    #15739

    cdils
    Participant
    Post count: 421

    Hi Mitch,

    Glad you were able to find a solution! My other suggestion would be to target the page using its body class (if you view the <body> tag on your search archives page, you should see something like <body class=”search

    Then you could target your CSS like:

    .search .hentry { foo: bar; }

    Naturally subbing in .hentry for whatever page element you’re trying to hit.

    Changing gears, the new format for StudioPress Community forums has definitely taken some getting used to. It’s moderated by other Genesis users as opposed to just StudioPress staff and meant to be a way for the community to share tips, tricks, etc. If you ever have a question that’s going unanswered, go to My StudioPress > Get Help and submit a help ticket. That’ll get answered by a staff member in a hurry. :)

    Are you on Twitter? You can also use the #genesiswp hashtag for conversations/questions!

    Cheers,

    Carrie

     


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.