- This topic has 1 reply, 2 voices, and was last updated 10 years, 3 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › Facts WordPress theme › Overwriting Parent Function
Tagged: functions
Hi guys,
I’m hoping you can help me.
I want to add a link within the breadcrumb section in the h1.entry-title but I can’t seem to overwrite the parent function. Here is the parent function within the tdframework folder in theme-functions.php:
// Outputs the page title and breadcrumbs before a template page
//
function core_theme_page_title() {
if ( ! class_exists( 'ReduxFramework' ) ) {
$titles_on = array( 'archive' => true, 'page' => true, 'post' => true );
} else {
$titles_on = tdf_option_get( 'general-titles-on' );
}
if ( is_archive() && ! $titles_on['archive'] ) {
return;
}
if ( is_page() && ! $titles_on['page'] ) {
return;
}
if ( is_single() && ! $titles_on['post'] ) {
return;
}
if ( !is_home() && !is_front_page() ) {
global $post;
echo '<header class="entry-header">';
do_action( 'page_title_hook' );
echo '</header><!-- .entry-header -->';
}
}
I just want to add in an a href tag within the header.
Thanks,
Al.
Hi Al,
I’m afraid that advice regarding code is something we can only do for our premium support members as that would require our developers to look into the issue.
You can learn more about our premium support package here: http://theme-dutch.compremium-support/
Kind regards,
Kevin