Theme date in google search result


Hi Jerry,

You can overwrite Beans parent theme files like index.php, page.php, single.php etc.. just by creating that file with the same name in Beans child theme directory/folder.

If you are familliar with Beans API, your new file should look like this:

<?php
/*
 * My child theme index.php
 */

// Beans has some cool functions to modify the DOM, use them after this line...
...
..
.

/*
 * Now you should load the entire document.
 * This function should be always at the end of the file.
 */
beans_load_document();

Or the classic way:

<?php
/*
 * My classic index.php
 *
 * Sidebar(s) are automatically generated when get_header() is called.
 */

get_header();

  // your custom content...
    ?>
    <div id="content">
     <?php
        while ( have_posts() ) : the_post();
         ...
   endwhile;
   ?>
    </div><!-- end content -->
    <?php

get_footer();

Write a reply

Login or register to write a reply, it's free!