Forum has been created to help all our customers in properly working our theme. We offer complete help with configuration theme and make default look, just like on our Bretheon demo. We don`t offer theme customization.

Before creating a new discussion, please:
1. Check on forum if discussion hasn`t been created before. Use the forum Search on the right.
2. Read carefully the documentation included to package.
If you didn`t find what you need and would like to post a new question click the "Start a New Discussion" button on the right.
4. You can post on forum only after registration (you need purchase code to register) .


NOTE!!! If you are starting a new topic and have got problems with your site and you want us to check what`s wrong please always give url to your site because without that we can`t check what`s wrong. Each case may be different because of your installed plugins, servers or other things.

Problem with SEO plugin by Yoast?
  • If you had a problem with SEO plugin by Yoast please change one little thing in header.php file like below (this is solution for all those who doesn`t want to push the same title for header page as for meta):

    In header.php file please find below code:

    // Page title
    echo '<div id="Subheader">';
        echo '<div class="container">';
            echo '<div class="sixteen columns">';
                echo '<h1>'. trim( wp_title( '', false ) ) .'</h1>';
                mfn_breadcrumbs();
            echo '</div>';
        echo '</div>';
    echo '</div>';

    and replace it with:

    // Page title
    echo '<div id="Subheader">';
        echo '<div class="container">';
            echo '<div class="sixteen columns">';
                if( get_post_type()=='page' ){
                    echo '<h1>'. $post->post_title .'</h1>';
                } else {
                    echo '<h1>'. trim( wp_title( '', false ) ) .'</h1>';
                }
                mfn_breadcrumbs();
            echo '</div>';
        echo '</div>';
    echo '</div>';

    This solution should be helpful for all of you who doesn`t want to push the same title as for meta, into header section for page. With this solution in header you will get the same title as it is for page title while create/edit page.
  • 3 Comments sorted by
  • HI Thanks for that.

    Where do I go to make the same change for the breadcrumbs?

  • Hi

    I think that should be the

    functions/theme-functions.php file.

    Sorted thanks

    This is the replacement breadcrumbs code i used:

    [code]
    /* ---------------------------------------------------------------------------
     * Breadcrumbs
     * --------------------------------------------------------------------------- */
    function mfn_breadcrumbs() {

        global $post;
        $homeLink = home_url();
       
        $translate['home'] = mfn_opts_get('translate') ? mfn_opts_get('translate-home','Home') : __('Home','bretheon');
        $translate['you-are-here'] = mfn_opts_get('translate') ? mfn_opts_get('translate-you-are-here','You are here:') : __('You are here:','bretheon');

        echo '<ul class="breadcrumbs">';
        echo '<li>'. $translate['you-are-here'] .'</li>';
        echo '<li><a href="'. $homeLink .'">'. $translate['home'] .'</a> <span><i class="icon-angle-right"></i></span></li>';

        // Blog Category
        if ( is_category() ) {
            echo '<li><a href="'. curPageURL() .'">' . __('Archive by category','bretheon').' "' . single_cat_title('', false) . '"</a></li>';

        // Blog Day
        } elseif ( is_day() ) {
            echo '<li><a href="'. get_year_link(get_the_time('Y')) . '">'. get_the_time('Y') .'</a> <span><i class="icon-angle-right"></i></span></li>';
            echo '<li><a href="'. get_month_link(get_the_time('Y'),get_the_time('m')) .'">'. get_the_time('F') .'</a> <span><i class="icon-angle-right"></i></span></li>';
            echo '<li><a href="'. curPageURL() .'">'. get_the_time('d') .'</a></li>';

        // Blog Month
        } elseif ( is_month() ) {
            echo '<li><a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> <span><i class="icon-angle-right"></i></span></li>';
            echo '<li><a href="'. curPageURL() .'">'. get_the_time('F') .'</a></li>';

        // Blog Year
        } elseif ( is_year() ) {
            echo '<li><a href="'. curPageURL() .'">'. get_the_time('Y') .'</a></li>';

        // Single Post
        } elseif ( is_single() && !is_attachment() ) {
           
            // Custom post type
            if ( get_post_type() != 'post' ) {
                $post_type = get_post_type_object(get_post_type());
                $slug = $post_type->rewrite;
               
                if( $slug['slug'] == mfn_opts_get('portfolio-slug','portfolio-item') && $portfolio_page_id = mfn_opts_get('portfolio-page') )
                {
                    echo '<li><a href="' . get_page_link( $portfolio_page_id ) . '">'. get_the_title( $portfolio_page_id ) .'</a> <span><i class="icon-angle-right"></i></span></li>';
                } else {
                    echo '<li><a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a> <span><i class="icon-angle-right"></i></span></li>';
                }
                echo '<li><a href="' . curPageURL() . '">'. $post->post_title .'</a></li>';
               
            // Blog post   
            } else {
                $cat = get_the_category();
                $cat = $cat[0];
                echo '<li>';
                echo get_category_parents($cat, TRUE, '');
                echo ' <span><i class="icon-angle-right"></i></span></li>';
                echo '<li><a href="' . curPageURL() . '">'. $post->post_title .'</a></li>';
            }

        // Taxonomy
        } elseif( get_post_taxonomies() ) {
           
            $post_type = get_post_type_object(get_post_type());
            if( $post_type->name == 'portfolio' && $portfolio_page_id = mfn_opts_get('portfolio-page') ) {
                echo '<li><a href="' . get_page_link( $portfolio_page_id ) . '">'. get_the_title( $portfolio_page_id ) .'</a> <span><i class="icon-angle-right"></i></span></li>';
            }

            echo '<li><a href="' . curPageURL() . '">'. $post->post_title .'</a></li>';

        // Page with parent
        } elseif ( is_page() && $post->post_parent ) {
            $parent_id  = $post->post_parent;
            $breadcrumbs = array();
            while ($parent_id) {
                $page = get_page($parent_id);
                $breadcrumbs[] = '<li><a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a> <span><i class="icon-angle-right"></i></span></li>';
                $parent_id  = $page->post_parent;
            }
            $breadcrumbs = array_reverse($breadcrumbs);
            foreach ($breadcrumbs as $crumb) echo $crumb;
           
            echo '<li><a href="' . curPageURL() . '">'. get_the_title() .'</a></li>';

        // Default
        } else {
            echo '<li><a href="' . curPageURL() . '">'. get_the_title() .'</a></li>';
        }

        echo '</ul>';
    }

    [/code]