How to shorten the breadcrumb?

This topic contains 6 replies, has 4 voices, and was last updated by  Stiofan O’Connor 7 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #200674

    Mario
    Expired Member
    Post count: 58

    At detail-pages the page-title is used for breadcrumb. For longer page-titles the breadcrumb does´nt look nice. It is too long. See for example http://stage.radsport-spanien.de/de/veranstalter/train-spain-rennrad-trainingscamp-mit-train-spain/

    With Avada-Pageoptions on regular pages/posts i could separate page-title and create a custom page-title text. The result (different page-title and breadcrumb) looks like http://stage.radsport-spanien.de/de/radcamps/
    How could i do this (page-title and extra shorter text for breadcrumb) on detail-pages too?

    #200675

    Kor
    Moderator
    Post count: 16516

    Hi mario,

    Thanks for writing in. I’ve just visited the link you posted and I’m able to see the issue there. Try applying the custom CSS below and see if it’s what you’re for? Insert into GD > Design > Scripts > Custom Style CSS

    
    
    .fusion-breadcrumbs > li {
       overflow: hidden;
       max-width: 360px;
       float: right;
       text-overflow: ellipsis;
       white-space: nowrap;
    }

    Thanks!

    #200716

    Mario
    Expired Member
    Post count: 58

    Thank you very much. That works, but is not the solution i am looking for.

    I wanted to use the title text from Avada Fusion Page Options ‘Page Tiel Bar Custom Text’.
    Breadcrumbtext should come from page title as it is. OK.

    I unfortunately only could manage this with modifying compatibilityAvada.php in Link 97:

    
    
        if (geodir_is_page('detail') || geodir_is_page('preview')) {
    		if ( '' != get_post_meta( $pageID, 'pyre_page_title_custom_text', true ) ) {
    			$title = get_post_meta( $pageID, 'pyre_page_title_custom_text', true );
    		}
    		else {
    		   $title = get_the_title();
    		}
            avada_page_title_bar($title, $subtitle, $secondary_content);
        }

    It would be nice if GeoDirectory could use the nice Fusion Page Options, coming with Avada.

    #200982

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I flagged this for Stiofan.It’s a shame that you have to modify core files to achieve what you need.

    We should improve our filters to allow you to change this from within functions.php of your child theme.

    Thanks

    #201005

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Mario,

    Can you confirm this code works, if so i’ll replace it in core:

    
    
    if (geodir_is_page('detail') || geodir_is_page('preview')) {
            if ( $title = get_post_meta( get_the_ID(), 'pyre_page_title_custom_text', true ) ) {}
            else {
                $title = get_the_title();
            }
            avada_page_title_bar($title, $subtitle, $secondary_content);
        }

    Thanks,

    Stiofan

    #201011

    Mario
    Expired Member
    Post count: 58

    yes, it works fine. Thx.

    #202258

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    i have added this to core now.

    Thanks,

    Stiofan

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket