Resolved

Search results page appearance

Ultra Theme started by jfcyr Dec 1, 2017 8 replies
jfcyr Dec 1, 2017 · 6:37 pm #8384

Hello
Ref. web site: http://reflexphotonics.com
I am trying to reduce the white spaces between the search results (padding as well as margin) on the search result page.
I cannot seem to find the relevant selectors to reduce the values of the padding and the bottom margin.
In addition, post/page title of the results is displayed with H1 tag. Can that be changed?
Can you help ?

Andrew Misplon Puro Dec 1, 2017 · 7:40 pm #8386

Hi 🙂

Please, try:

.search-results article {
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.search-results p:only-child {
    margin-bottom: 0;
}

For the h1 issue, I’ll adjust that in an update next week, that’ll be the lowest code overhead solution, no child theme files required that way. What heading did you want to make those?

jfcyr Dec 1, 2017 · 8:00 pm #8387

Brilliant!
One more quibble: in the case of posts, the post date is also displayed and there is un unsightly gap below it.
As for the H1 issue, I am not following… ” the lowest code overhead solution” ?? What does that mean ? O.o

Andrew Misplon Puro Dec 1, 2017 · 8:04 pm #8388

Changing the h1 tag would involve you exporting your Customizer options. Installing a child theme and then importing your Customizer options. Those shouldn’t be h1 so if I fix in the update, you run the update. Sorted.

Single Post Meta Spacing:

.single .entry-meta .container > div {
    margin-bottom: 25px;
}
Andrew Misplon Puro Dec 1, 2017 · 8:13 pm #8389

No problem. Unfortunately, the forum doesn’t support email replies. Happy to work on email but it’s nice to finish support topics in one place, if we can. If you’d like to email next time, that’s 100%. The incorrect character is from copying the snippet from email, the greater than sign changes to HTML. If you grab it here on the forum, it should be good.

jfcyr Dec 1, 2017 · 8:21 pm #8390

My fault.
Latest snippet has no effect even at 0px…
Could there be top padding on the article itself?

Andrew Misplon Puro Dec 1, 2017 · 8:28 pm #8391

No problem.
I tried for ages to get an email plugin working with bbPress which is what we’re using here. In the end I gave up. A future challenge.

Sorry, I thought you meant on the single post page. Please, remove the previous rule and add:

.search-results .site-content .entry-meta {
    margin-bottom: 0;
}
jfcyr Dec 1, 2017 · 8:55 pm #8392

Resolved !
Thanks again, Have a great WE.

Andrew Misplon Puro Dec 2, 2017 · 11:31 am #8397

Super 🙂 Glad to hear that did the trick. I’ll get an update out next week ASAP to change the h1 tag to a h2.

9 posts