Tagged: x
-
AuthorPosts
-
January 5, 2017 at 9:14 pm #1318328
treeleaf20ParticipantIf you go to my site:
http://tenthpin.com/?s=sadfYou 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?
January 6, 2017 at 12:16 am #1318448
FriechModeratorHi 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!
January 6, 2017 at 6:01 am #1318719
treeleaf20ParticipantThis 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!
January 6, 2017 at 4:04 pm #1319362
RadModeratorHi 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!
January 12, 2017 at 6:55 pm #1328037
treeleaf20ParticipantThis 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?
January 12, 2017 at 11:02 pm #1328295
RupokMemberHi 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1318328 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
