- This topic has 8 replies, 2 voices, and was last updated 6 years, 9 months ago by
Andrew Misplon.
Tagged: search result page appearance
- AuthorPosts
- December 1, 2017 at 6:37 pm #8384
jfcyrParticipantHello
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 ?December 1, 2017 at 7:40 pm #8386
Andrew MisplonKeymasterHi 🙂
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?December 1, 2017 at 8:00 pm #8387
jfcyrParticipantBrilliant!
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.oDecember 1, 2017 at 8:04 pm #8388
Andrew MisplonKeymasterChanging the
h1
tag would involve you exporting your Customizer options. Installing a child theme and then importing your Customizer options. Those shouldn’t beh1
so if I fix in the update, you run the update. Sorted.Single Post Meta Spacing:
.single .entry-meta .container > div { margin-bottom: 25px; }
December 1, 2017 at 8:13 pm #8389
Andrew MisplonKeymasterNo 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.
December 1, 2017 at 8:21 pm #8390
jfcyrParticipantMy fault.
Latest snippet has no effect even at 0px…
Could there be top padding on the article itself?December 1, 2017 at 8:28 pm #8391
Andrew MisplonKeymasterNo 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; }
December 1, 2017 at 8:55 pm #8392
jfcyrParticipantResolved !
Thanks again, Have a great WE.December 2, 2017 at 11:31 am #8397
Andrew MisplonKeymasterSuper 🙂 Glad to hear that did the trick. I’ll get an update out next week ASAP to change the
h1
tag to ah2
. - AuthorPosts
You must be logged in to reply to this topic.