Community Forums › Forums › Archived Forums › Design Tips and Tricks › style on Search page
- This topic has 3 replies, 2 voices, and was last updated 12 years ago by
cdils.
-
AuthorPosts
-
January 11, 2013 at 2:17 am #11163
majecdad
MemberHi 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!
January 27, 2013 at 9:15 am #15289cdils
ParticipantHey 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 WordPress-focused podcast called Office Hours. I tweet @cdils.
January 28, 2013 at 3:15 pm #15713majecdad
MemberHi 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
January 28, 2013 at 4:13 pm #15739cdils
ParticipantHi 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 WordPress-focused podcast called Office Hours. I tweet @cdils.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.