Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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.

    #821714
    #821734

    Hi Victoria, of course I did already look at those before posting. but I didn’t find what I needed.

    #821802

    Hi eddygame,

    If you enable the breadcrumbs, not just title, you will get all the categories. Have you tried that?

    Best regards,
    Victoria

    #821820

    Yes, 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. example<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.
    #822058

    Hi 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,
    Victoria

    #822378

    I 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

    #822748

    Hi 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,
    Victoria

    #822780

    Thanks so much – it worked a treat

    #824021

    Hi eddygame,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.