This topic has 8 replies, 2 voices, and was last updated 9 years by BDecker19.

  • Author
  • #63635
     BDecker19
    Participant

    Hi, is there a possible bug with the custom title functionality?

    Currently, if the theme option is set to display page titles in the breadcrumb and you set a custom one in the page options, it will display the custom title as it should (eg http://take.ms/jIzH5).

    If the setting is switched over to display the title in the body however, it no longer picks up the replacement and switches back to the main page title (eg http://take.ms/jIzH5).

    Is there a possible fix for this?

    #63647
     sharmstr
    Moderator

    You attached the same image twice, but yes, it appears to be a bug.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #63651
     sharmstr
    Moderator

    Okay, this will be fix in the next minor release. In the meantime, put this in your childs functions.php file. Remember to remove it after the next update

    COPY CODE
    
    function kleo_title_main_content() {
            if (sq_option('title_location', 'breadcrumb') == 'main') {
    
                $title_status = true;
                if( is_singular() && get_cfield( 'title_checkbox' ) == 1 ) {
                    $title_status = false;
                }
    
                if ( $title_status ) {
                    if ( is_singular() && get_cfield( 'custom_title' ) && get_cfield( 'custom_title' ) != ''  ) {
                        $title = get_cfield( 'custom_title' );
                    } else {
                        $title = kleo_title();
                    }
                    echo '<div class="container">';
                    echo '<h1 class="page-title">' . $title . '</h1>';
                    echo '</div>';
                }
    
            }
        }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #63652
     BDecker19
    Participant

    Ok, awesome. Thanks so much as always!

    #63842
     BDecker19
    Participant

    Oh btw, for the release fix… if it’s possible, one thing to consider as well would be having it replace the title in the browser tab display. Currently it still shows the title, rather than the override one if it exists… (eg http://take.ms/Y3Ngv)

    #63844
     sharmstr
    Moderator

    ooooo. Okay, I’ll look at that tomorrow. Thanks for catching that.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #63888
     sharmstr
    Moderator

    I just realized that the blog listings have the original title too. Trying to get these changes into the update that’s being released tonight.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #63988
     sharmstr
    Moderator

    Okay, I’ve updated the page title in the header for all styles of posts and pages. I’ve also updated the new News Shortcodes for posts and tickers. The stuff that wont get the custom title is all non Kleo stuff like the built in VC posts grids and such.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #63991
     BDecker19
    Participant

    That’s amazing. Will look forward to the update then!

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

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?