Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
I’m using vantage + WP 4.1.1
Is there any way to make changes to those two pages as you would, say a user created page. The only way I can see how to modify them is via the editor on the main word press menu tree and choosing search.php or whatever.php
This isn’t ideal as I don’t particularly understand much of what the code is doing. All I literally want to do is chuck away the bloggy bits and the new post history bits.
See
<?php /** * The template part for displaying a message that posts cannot be found. * * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package vantage * @since vantage 1.0 * @license GPL 2.0 */ ?> <article id="post-0" class="post no-results not-found"> <header class="entry-header"> <h1 class="entry-title"><?php _e( 'Nothing Found', 'vantage' ); ?></h1> </header><!-- .entry-header --> <div class="entry-content"> <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> <?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'vantage' ), esc_url( admin_url( 'post-new.php' ) ) ); ?> <?php elseif ( is_search() ) : ?> <?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'vantage' ); ?> <?php get_search_form(); ?> <?php else : ?> <?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'vantage' ); ?> <?php get_search_form(); ?> <?php endif; ?> </div><!-- .entry-content --> </article><!-- #post-0 .post .no-results .not-found -->
<?php /** * The template for displaying Search Results pages. * * @package vantage * @since vantage 1.0 * @license GPL 2.0 */ get_header(); ?> <section id="primary" class="content-area"> <div id="content" class="site-content" role="main"> <?php if ( have_posts() ) : ?> <header class="page-header"> <h1 id="page-title"><?php printf( __( 'Search Results for: %s', 'vantage' ), '<span>' . get_search_query() . '</span>' ); ?></h1> </header><!-- .page-header --> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content' ); ?> <?php endwhile; ?> <?php vantage_content_nav( 'nav-below' ); ?> <?php else : ?> <?php get_template_part( 'no-results', 'search' ); ?> <?php endif; ?> </div><!-- #content .site-content --> </section><!-- #primary .content-area --> <?php get_sidebar(); ?> <?php get_footer(); ?>
<?php /** * The template for displaying 404 pages (Not Found). * * @package vantage * @since vantage 1.0 * @license GPL 2.0 */ get_header(); ?> <div id="primary" class="content-area"> <div id="content" class="site-content" role="main"> <article id="post-0" class="post error404 not-found"> <div class="entry-main"> <?php do_action('vantage_entry_main_top') ?> <header class="entry-header"> <h1 class="entry-title"><?php echo apply_filters( 'vantage_404_title', __( "That page can't be found.", 'vantage' ) ); ?></h1> </header><!-- .entry-header --> <div class="entry-content"> <?php echo apply_filters( 'vantage_404_message', __( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'vantage' ) ); ?> <?php get_search_form(); ?> <?php the_widget( 'WP_Widget_Recent_Posts' ); ?> <div class="widget"> <h2 class="widgettitle"><?php _e( 'Most Used Categories', 'vantage' ); ?></h2> <ul> <?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?> </ul> </div><!-- .widget --> <?php $archive_content = '' . __( 'Try looking in the monthly archives.', 'vantage' ) . ' '; the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" ); ?> <?php the_widget( 'WP_Widget_Tag_Cloud' ); ?> </div><!-- .entry-content --> <?php do_action('vantage_entry_main_bottom') ?> </div><!-- .entry-main --> </article><!-- #post-0 .post .error404 .not-found --> </div><!-- #content .site-content --> </div><!-- #primary .content-area --> <?php get_footer(); ?>