Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1318328
    treeleaf20
    Participant

    If you go to my site:
    http://tenthpin.com/?s=sadf

    You can see that there are no search results for that but I added the following CSS to remove the sidebar:

    .search-results .x-sidebar.right,
    .search-no-results .x-sidebar.right {
        display: none;
    }
    
    .search-results .x-main.left,
    .search-no-results .x-main.left {
        width: 100%;
    }

    However, it still leaves a grey area where the sidebar would be that I want to go away and just show the search results.

    How can I remove it and have the whole background be white?

    #1318448
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Please update your first block of code to this:

    .search-results .x-sidebar.right,
    .search-no-results .x-sidebar.right,
    .x-container.main:before {
        display: none;
    }

    And set your actual page body background-color on the Customizer.

    Hope it helps, Cheers!

    #1318719
    treeleaf20
    Participant

    This worked but it looks good. When it finds something though, it only shows the text page title instead of the text on the page. Try this link:

    http://tenthpin.com/?s=process

    Thanks for the help!

    #1319362
    Rad
    Moderator

    Hi there,

    Please try adding the “Home” excerpt manually. It’s not displaying any content since its content is made from the builder. WordPress will try to generate plain text excerpt by removing HTML, codes, and shortcodes. But since it is built in a builder (shortcodes), it will return empty when displayed. You have to manually add excerpt on that page.

    Please add this code to your child theme’s functions.php

    add_action( 'init', 'integrate_excerpt_to_page' );
    function integrate_excerpt_to_page() {
         add_post_type_support( 'page', 'excerpt' );
    }

    Now edit the pages you built from cornerstone and open Screen Options on the very top of the page. Then toggle on the Excerpt, then scroll down until you find the excerpt section. Add you text 🙂

    Cheers!

    #1328037
    treeleaf20
    Participant

    This works, is there anyway to simply make the search go through the post so it can use shortcodes and acts like a standard wordpress search output without adding an excerpt?

    #1328295
    Rupok
    Member

    Hi there,

    Thanks for updating. Further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.

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