• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

style on Search page

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › style on Search page

This topic is: not resolved

Tagged: archive, css, search, style

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 1 month ago by cdils.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 11, 2013 at 2:17 am #11163
    majecdad
    Member

    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!

    January 27, 2013 at 9:15 am #15289
    cdils
    Participant

    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 WordPress-focused podcast called Office Hours. I tweet @cdils.

    January 28, 2013 at 3:15 pm #15713
    majecdad
    Member

    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

    January 28, 2013 at 4:13 pm #15739
    cdils
    Participant

    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 WordPress-focused podcast called Office Hours. I tweet @cdils.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble