Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1037399
    Nick
    Participant

    hi i want to edit the search result page of x

    http://uitvaartverzekeringafsluiten.net/?s=uitvaart+vergelijken

    i had some child theme on, and can little bit code in php etc..

    what i must do ?

    » i want meta data loaded
    » and maybe a short title.
    » Is it possible to have image before the result?

    Thanks in advance

    #1037780
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in!

    These search results comes from your pages. And by default, page excerpts were disabled by WordPress. This is why you are only seeing page titles and no descriptions in it. You have to turn in on by inserting this following code in your child theme’s functions.php file

    // Add manual excerpts to pages
    // =============================================================================
    add_action( 'init', 'my_add_excerpts_to_pages' );
    function my_add_excerpts_to_pages() {
         add_post_type_support( 'page', 'excerpt' );
    }
    // =============================================================================

    To display the page excerpt, you may have to use the manual excerpts. To add an excerpt to a page, simply write one in the Excerpt field under the post edit box. Please see the screenshot below: http://prntscr.com/a57dbr

    Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts here: https://codex.wordpress.org/Excerpt

    To display an image, you need to add a featured image to each of your pages. And to make sure that you have a short title, you can supply an alternate title in the page settings.

    Hope this helps.

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