Tagged: breadcrumbs, page, settings, title
-
AuthorPosts
-
January 27, 2015 at 7:24 pm #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.
January 28, 2015 at 11:49 am #386906Hey 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ünterJanuary 28, 2015 at 12:53 pm #386932Thanks, 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.
January 28, 2015 at 1:13 pm #386939Hi!
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ünterJanuary 28, 2015 at 1:53 pm #386956That sounds perfect, thank you, Günter, I will try this until the theme update. Much appreciated!
January 28, 2015 at 2:26 pm #386966 -
AuthorPosts
- The topic ‘"Title Bar Settings": how to set this to "only breadcrumbs"?’ is closed to new replies.
