Home › SUPPORT FORUMS › Facts WordPress theme › Overwriting Parent Function

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  kevin(Staff) 6 minutes ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #65507

    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.

    #65515

    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.com/premium-support/

    Kind regards,
    Kevin

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.