Search result page with just title no other contents
-
Hello,
I am trying to edit my search result page, i would like to have the title of the page which has the content i looked for , i do not want to have any other text below it.
now by default i know, it is giving the featured image and the body text..
can someone help me to make a search result page with just the title of the content i looked for.
this is my code
<div class="search"> <form method="get" class="search-form" action="<?php echo trailingslashit( home_url() ); ?>"> <div> <input class="search-text" type="text" name="s" value="<?php if ( is_search() ) echo esc_attr( get_search_query() ); else esc_attr_e( 'Search this site...', 'sukelius-magazine' ); ?>" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" /> <input class="search-submit button" name="submit" type="submit" value="<?php esc_attr_e( 'Go', 'sukelius-magazine' ); ?>" /> </div> </form><!-- .search-form --> </div><!-- .search -->
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Search result page with just title no other contents’ is closed to new replies.