badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: Put page title in the breadcrumbs bar

#4250
Petrichor
Participant

I created wp-content/themes/attitude-pro-child/library/structure/content-extensions.php and removed the following lines:

<header class=”entry-header”>
<h2 class=”entry-title”>
” title=”<?php the_title_attribute();?>”><?php the_title(); ?>
</h2><!– .entry-title –>
</header>

I created wp-content/themes/attitude-pro-child/functions.php and put the following script in it:

function attitude_theloop_for_page() {
global $post;

if( have_posts() ) {
while( have_posts() ) {
the_post();

do_action( ‘attitude_before_post’ );
?>
<section id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<article>

<?php do_action( ‘attitude_before_post_header’ ); ?>

<header class=”entry-header”>
<h2 class=”entry-title”>
<?php the_title(); ?>
</h2><!– .entry-title –>
</header>

<?php do_action( ‘attitude_after_post_header’ ); ?>

<?php do_action( ‘attitude_before_post_content’ ); ?>

<div class=”entry-content clearfix”>
<?php the_content(); ?>
<?php
wp_link_pages( array(
‘before’ => ‘<div style=”clear: both;”></div><div class=”pagination clearfix”>’.__( ‘Pages:’, ‘attitude’ ),
‘after’ => ‘</div>’,
‘link_before’ => ‘<span>’,
‘link_after’ => ‘</span>’,
‘pagelink’ => ‘%’,
‘echo’ => 1
) );
?>
</div>

<?php

do_action( ‘attitude_after_post_content’ );

do_action( ‘attitude_before_comments_template’ );

comments_template();

do_action ( ‘attitude_after_comments_template’ );

?>

</article>
</section>
<?php
do_action( ‘attitude_after_post’ );

}
}
else {
?>
<h1 class=”entry-title”><?php _e( ‘No Posts Found.’, ‘attitude’ ); ?></h1>
<?php
}
}
endif;