Tagged: x
-
AuthorPosts
-
October 14, 2016 at 1:19 pm #1216441
bcoplinParticipantI have enabled the search option in the header, but when I go to search for things, nothing populates.
How do I make different pages populate in that area? Thus making the search feature functional.
Thanks,
Ben
October 14, 2016 at 9:47 pm #1216937
Rue NelModeratorHello Ben,
Thanks for writing in! In the search page, there should be titles that displays but since you added a custom css that hides the titles for the pages, it is not showing. Please add the following css code in the customizer, Appearance > Customize > Custom > CSS
.search .entry-header { display: block; }And then you will have this: http://prntscr.com/cu09e9
By default WordPress will generate the first 55 words from the post content. The results were coming from a page so there is no excerpts. You need to enable the Page excerpts. This option is disabled for pages by default in WordPress. It can be enabled with a template change. To do this, please follow this workaround:
Because what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
After the child theme is set up, please add the following code in your child theme’s functions.php file
// Enable custom excerpts option in Pages // ============================================================================= add_action( 'init', 'my_add_excerpts_to_pages' ); function my_add_excerpts_to_pages() { add_post_type_support( 'page', 'excerpt' ); }After that, you should be able to enable the Excerpt option under Screen Options (https://codex.wordpress.org/Administration_Screens#Screen_Options) when you are in the page editing screen.
Hope this helps. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1216441 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
