Demo Templates - Byron Center, MI

Tabs Pages add this code in the parent theme to the tabs template (templates/content/tabs.php

Assigned to
Kyle Sullivan, Web Development at Diocesan Kyle S.
Notes
Otherwise, the tabs do not pull in expanded shortcodes, reusable blocks, or embed videos and things. Push this to any old sites that use the tab template, probably not many actually, then to the demo, design and showcase sites it used to be this one line <div class="tab-content" id="tab-<?php the_ID(); ?>"><?php the_content(); ?></div> but the hr tag is used for adding a bit of space otherwise if they have buttons, then it will nearly touch the bar. and the rest is explained in the comments.
 <div class="tab-content" id="tab-<?= $child->ID; ?>">
	<hr style="height: 20px;">
	<?php 
	$content = get_the_content(false, null, $child->ID);//gets the posts content
	$content = apply_filters( 'the_content', $content ); //expands shortcodes and embeds videos
   	$content = str_replace( ']]>', ']]&gt;', $content ); //needed for correct output
	echo $content; //output text
	 ?>
</div>

Comments & Events

Kyle Sullivan, Web Development at Diocesan
Kyle Sullivan completed this to-do.