Tagged: breadcrumb, title
-
AuthorPosts
-
July 14, 2017 at 11:06 pm #821475
I would like to change the TITLE in the breadcrumb from ‘News’ (top level category) to the nested/child category, see example) so basically only the last post category is displayed. Is this possible? I have a child theme in place btw.
July 15, 2017 at 4:26 pm #821714Hey eddygame,
Here are some threads to consider:
https://kriesi.at/support/topic/how-do-i-change-you-are-here-in-the-breadcrumb/
Best regards,
VictoriaJuly 15, 2017 at 4:51 pm #821734Hi Victoria, of course I did already look at those before posting. but I didn’t find what I needed.
July 15, 2017 at 7:53 pm #821802Hi eddygame,
If you enable the breadcrumbs, not just title, you will get all the categories. Have you tried that?
Best regards,
VictoriaJuly 15, 2017 at 9:08 pm #821820Yes, that is default enfold behaviour which I can set in the heading area – but that is not what I am trying to achieve. I have posted an image which should make it clearer. <br />cdn images<br /> What I’d like to do is move the category text – in this example (2017) to where the larger (NEWS) text currently is.
For clarity – I also then do not want the text section which is currently (You are here:Home/News / News / 2017 / No Lost Cause For Punters) to appear – SO NO text in the righthand area and in the left hand area just the last child category should appear.
- This reply was modified 7 years, 4 months ago by eddygame.
July 16, 2017 at 4:13 pm #822058Hi eddygame,
I’m afraid that is not something that can be done with a small code snippet and so is out of the scope of our support. You could hire a freelancer to do it for you.
If you need further assistance please let us know.
Best regards,
VictoriaJuly 17, 2017 at 8:45 am #822378I found this code snippet http://kriesi.at/documentation/enfold/replace-the-default-blog-latest-news-title/ which works perfectly… but instead of outputting the post title I just need it to output the current category of a post. Can anyone help? I’ve tried editing a few lines but I can’t get it to work with categories
July 17, 2017 at 4:53 pm #822748Hi eddygame,
Here is how you can get the categories
add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { $category = get_the_category($id); if(isset($category[0])) { $args['title'] = $category[0]->cat_name; $args['link'] = get_category_link($category[0]->term_id); $args['heading'] = 'h1'; } return $args; }
If you need further assistance please let us know.
Best regards,
VictoriaJuly 17, 2017 at 5:54 pm #822780Thanks so much – it worked a treat
July 19, 2017 at 3:26 pm #824021Hi eddygame,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.