Hi Zewel,
once you set up your child-theme, this is the code you have to add in its functions.php
/* add widget area before the blog, after the featured pages, only in home */
add_filter( 'tc_default_widgets' , 'add_featured_page_widget' );
function add_featured_page_widget( $defaults ) {
$defaults['fp_widgets'] = array(
'name' => __( 'Featured Pages Widget' , 'customizr' ),
'description' => __( 'After the featured pages area on home' , 'customizr' )
);
return $defaults;
}
add_action('__before_main_container' , 'display_my_fp_widget', 15 );
function display_my_fp_widget() {
if ( ! tc__f('__is_home') )
return;
dynamic_sidebar('fp_widgets');
}
add_filter('widget_text', 'do_shortcode');
/* shortcode to display a page/post content + title */
add_shortcode('tc_post', 'do_tc_post');
function do_tc_post( $atts ){
$default = array(
'id' => '',
);
$atts = shortcode_atts($default, $atts);
if ( ! isset($atts['id']) )
return;
$_post = get_post($atts['id']);
if ( ! isset($_post) )
return;
ob_start();
printf('
<article id="%1$s" class="post-%1$ page type-page status-publish hentry row-fluid">
<header class="entry-header">
<h2 class="entry-title">%2$s</h2>
</header>
<section class="entry-content">
%3$s
</section>
</article>',
$_post -> ID,
$_post -> post_title,
apply_filters('the_content', $_post -> post_content)
);
$html = ob_get_contents();
if ( $html ) ob_end_clean();
return $html;
}
then add a new text widget in the new widget area and write:
[tc_post id="ID_PAGE_YOU_WANT_TO_SHOW"]
.
Hope this helps.