Skip to content

Instantly share code, notes, and snippets.

@arsieorgano
arsieorgano / main-content.php
Created February 28, 2015 10:23
Insert the following code between the header and sidebar hook
<div id="content">
<h1 class="page-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(''); ?>
<h3><?php _e('Looking for something? Try Searching...', 'aquamag'); ?></h3>
<?php get_search_form(); ?><br />
<h3><?php _e('The Latest Articles', 'aquamag'); ?></h3>
<ul>
<?php query_posts( 'showpost=30' ); ?>
@arsieorgano
arsieorgano / header-for-template.php
Last active August 29, 2015 14:16
Add the following to Indicate that this is a template
<?php
/*
Template Name: Archives Template
*/
?>
<?php get_header(); ?>
@arsieorgano
arsieorgano / 404.php
Created February 28, 2015 09:29
Remove this part from 404.php
<section class="error-404 not-found">
<div class="error-page">
<h1><?php _e( '404', 'aquamag' ) ?></h1>
<h2><?php _e( 'Oops! That page can&rsquo;t be found.', 'aquamag' ); ?></h2>
<p><?php _e( 'Maybe the page was moved or deleted, or perhaps you just mistyped the address. Please, try to use the search form below.', 'aquamag' ); ?></p>
<form method="get" class="uk-search post-search" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<input type="text" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'aquamag' ); ?>">
<button class="uk-search-submit" type="submit" name="submit"><?php _e( 'Search', 'aquamag' ); ?></button>
</form>
@arsieorgano
arsieorgano / template-archives.php
Created February 28, 2015 09:08
Adding Custom Archive Page for AquaMag Theme Theme-Junkie
<?php
/*
Template Name: Archives Template
*/
?>
<?php get_header(); ?>
<div id="primary" class="content-area uk-width-1-1 uk-width-large-7-10 site-content-left clearfix">