Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #386530

    Hi,

    I would like to show only the breadcrumbs and no title. Is this possible in any way?
    (Would be great as a new setting for future theme updates)

    Here the settings for a page:



    Note: I can NOT use there any CSS like “display: none” for the title, because I need this only at special pages!

    Thanks.

    #386906

    Hey COLORIT!

    Thank you for using our theme.

    Currently the easiest way is with CSS and limiting the code to the pages, where you want to hide the title like:

    
    
    .page-id-2630 .title_container .main-title,
    .page-id-2632 .title_container .main-title {
        display: none !important;
    }
    

    Alternative you can use a filter hook. Add the following to functions.php at the end:

    
    add_filter('avf_title_args', 'my_avf_title_args', 10, 2 );
    
    function my_avf_title_args ($args, $id)
    {
    		//	enter all the ID's of the pages with no title seperated by ,
    	$no_titles = array(
    			150, 200, 210
    			);
    	if (  in_array( $id, $no_titles ) )
    	{
    		$args['title'] = '';
    	}
    	
    	return $args;
    }
    

    Best regards,
    Günter

    #386932

    Thanks, Günther. It’s a lot of work, because I have a LOT of pages, where to hide the title and where I would like to show only the breadcrumbs.

    There isn’t a way, to “manipulate” the “title bar settings” in general, so that it let me choose this option?
    Do you plan this for a future theme update?

    Thanks.

    #386939

    Hi!

    Thank you for coming back.

    If you have only few pages that need the title you can modify the filter hook:

    
    add_filter('avf_title_args', 'my_avf_title_args', 10, 2 );
    
    function my_avf_title_args ($args, $id)
    {
    		//	enter all the ID's of the pages that need a title seperated by ,
    	$pages_titles = array(
    			150, 200, 210
    			);
    	if ( ! in_array( $id, $pages_titles ) )
    	{
    		$args['title'] = '';
    	}
    	
    	return $args;
    }
    

    I will try to implement this feature, so it will be in the core in one of the next updates.

    Cheers!
    Günter

    #386956

    That sounds perfect, thank you, Günter, I will try this until the theme update. Much appreciated!

    #386966

    Hi!

    I implemented it and posted the update request to Kriesi.
    Enjoy the theme.

    Best regards,
    Günter

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘"Title Bar Settings": how to set this to "only breadcrumbs"?’ is closed to new replies.