View content-with-excerpt.php
the_excerpt(); |
View docu_before_index_content.php
function custom_docu_before_index_content() { | |
echo '<h1>Before content</h1>'; | |
} | |
add_action( 'docu_before_index_content', 'custom_docu_before_index_content' ); |
View docu_doc_post_type_args.php
function custom_docu_doc_post_type_args( $docu_args ) { | |
$docu_args['rewrite'] = array('slug' => 'document'); | |
return $docu_args; | |
} | |
add_filter( 'docu_doc_post_type_args', 'custom_docu_doc_post_type_args' ); |
View docu_doc_post_type_labels.php
function custom_docu_doc_post_type_labels( $docu_labels ) { | |
$docu_labels['menu_name'] = __('Documents', 'my-text-domain'); | |
return $docu_labels; | |
} | |
add_filter( 'docu_doc_post_type_labels', 'custom_docu_doc_post_type_labels' ); |
View style.css
.docu-item.tf-custom-item { | |
width:100%; | |
padding-left: 5%; | |
padding-right: 5%; | |
padding-top: 0; | |
padding-bottom: 0; | |
background:#3070d1; | |
color:#FFF; | |
} |
View docu_after_index_content.php
function custom_docu_after_index_content() { | |
echo '<h1>After content</h1>'; | |
} | |
add_action( 'docu_after_index_content', 'custom_docu_after_index_content' ); |
View docu-item.php
<div class="docu-item <?php echo $col;?>"> |
View style.css
/* | |
Theme Name: Twenty Fifteen Child | |
Theme URI: http://example.com/twenty-fifteen-child/ | |
Description: Twenty Fifteen Child Theme | |
Author: John Doe | |
Author URI: http://example.com | |
Template: twentyfifteen | |
Version: 1.0.0 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
OlderNewer