Tagged: x
-
AuthorPosts
-
July 28, 2016 at 11:34 am #1107323
EricParticipantHey I’m having trouble with my search results. The first issue that I’m having has to do with the ‘nothing to show right now’ page, which pops up every time a search has no results. The issue (as you’ll see in screenshot 1), is that it doesn’t apply the same customization that’s being used on my other search results pages, which was personalized using CSS. So the first thing I’m trying to do is find a way to make my ‘nothing to show right now’ page look just like the other search pages, be it by adding more CSS or by some other method.
Then the second issue has to do with my revolution sliders showing up in my search results. I searched the forum and saw that it might have something to do with custom blog excerpts, but I’m not sure how to turn that off, and I’m also not even sure if I read that correctly.
Please advise and thanks in advance.
July 28, 2016 at 11:35 am #1107329
EricParticipantThis reply has been marked as private.July 28, 2016 at 11:36 am #1107333
EricParticipantThis reply has been marked as private.July 28, 2016 at 11:37 am #1107336
RahulModeratorHey There,
Thank you for writing in!
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks!
July 28, 2016 at 11:45 am #1107354
EricParticipantThis reply has been marked as private.July 28, 2016 at 6:49 pm #1107870
RadModeratorHi Eric,
It’s designed to display that page when the search result is empty. Though, I’m not really sure how your other result page looks like, are they different from X theme? Would you mind providing the URL or screenshots of what the other search result pages?
You may need to create a search template if you wish to include your specific search result. Right now, search result falls back to index template instead of another search template.
Thanks!
July 28, 2016 at 6:59 pm #1107871
EricParticipantWell screenshot 1 shows you what happens when a search result is successful (which is a result of the customizations that were made via the codes that I listed above. And then in screenshot 2 you’ll see what happens when the search result is empty. So basically my goal is to make empty searches appear like screenshot 1.
If the way to achieve that is by creating a search template, please advise me on how to do that.
Thanks!
July 29, 2016 at 12:51 am #1108328
Paul RModeratorHi Eric,
Please change your code to this.
/* SET A BACKGROUND IMAGE TO THE SEARCH RESULTS SIDEBAR */ body.search.search-results, body.search.search-no-results { background: #e4e4e4 url(http://i.imgur.com/mtv4deu.png) center top repeat; } /* SEARCH RESULTS BACKGROUND IMAGE */ body.search.search-results .x-container.main:before, body.search.search-no-results .x-container.main:before { background: white url(http://i.imgur.com/V7WzDqs.png) center top repeat; } /* BLACK NAVBAR FOR THE SEARCH RESULTS PAGES */ body.search.search-results .x-navbar-inner, body.search.search-no-results .x-navbar-inner{ background: black; } /* WHITE FONT ON MY SEARCH RESULTS PAGE */ body.search.search-results p, body.search.search-no-results p{ color:white; } /* SEARCH RESULTS EXCERPT FONT SIZE */ body.search.search-results .entry-content.excerpt, body.search.search-no-results .entry-content.excerpt{ font-size: 14px !important; } /* SEARCH RESULTS HEADER */ body.search.search-results header.masthead.masthead-stacked, body.search.search-no-results header.masthead.masthead-stacked { background-color: transparent; background-image: url(http://i.imgur.com/PYfUCTq.jpg); } /* FIXING THE SEARCH RESULTS WALLPAPER */ body.search.search-results .x-container.max.width.main, body.search.search-no-results .x-container.max.width.main { padding-top: 35px; } body.search.search-results .x-header-landmark, body.search.search-no-results .x-header-landmark { display: none; }Hope that helps
July 29, 2016 at 1:07 am #1108341
EricParticipantThanks a lot! Now any idea on how to stop my revolution sliders from showing up in my search results? I looked into it a bit more and from what I’ve gathered it certainly seems to be related to my blog excerpts, but nothing I’ve tried as of yet has worked.
Please advise, and thanks again for all your help!
July 29, 2016 at 2:39 am #1108440
RadModeratorHi Eric,
I don’t see any slider on your search result page. A visual guide is helpful to get to the right direction.
Please check the attached screenshot.
Thanks!
July 29, 2016 at 9:10 am #1108829
EricParticipantSorry the sliders only appear on pages with specific keywords. For example if you search ‘ghost’, it pulls up the slider from the ghostwriting tab as you can see in the attached screenshot.
Let me know what you think.
July 29, 2016 at 4:28 pm #1109411
RadModeratorHi there,
Ah, it’s from here http://ghostswithtypewriters.com/gw/, it inherits the first result since query is global.
Please add this CSS to Admin > Appearance > Customizer > Custom > CSS
.search-results .x-slider-container{ display: none; }Thanks!
July 29, 2016 at 5:06 pm #1109438
EricParticipantThanks Rad! That fixed it
July 29, 2016 at 8:30 pm #1109681
FriechModeratorWe’re delighted to assist you with this.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1107323 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
