Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1107323
    Eric
    Participant

    Hey 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.

    #1107329
    Eric
    Participant
    This reply has been marked as private.
    #1107333
    Eric
    Participant
    This reply has been marked as private.
    #1107336
    Rahul
    Moderator

    Hey 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 / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks!

    #1107354
    Eric
    Participant
    This reply has been marked as private.
    #1107870
    Rad
    Moderator

    Hi 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!

    #1107871
    Eric
    Participant

    Well 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!

    #1108328
    Paul R
    Moderator

    Hi 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

    #1108341
    Eric
    Participant

    Thanks 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!

    #1108440
    Rad
    Moderator

    Hi 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!

    #1108829
    Eric
    Participant

    Sorry 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.

    #1109411
    Rad
    Moderator

    Hi 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!

    #1109438
    Eric
    Participant

    Thanks Rad! That fixed it

    #1109681
    Friech
    Moderator

    We’re delighted to assist you with this.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1107323 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>