Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #222406

    Hi there,
    I’m having difficulty getting a consistent look to my blog posts. What I want is the title container bar with the post name as the title on the left and without the breadcrumbs on the right. I don’t ever want any title, date or breadcrumbs etc below this and above the post content.

    I really can’t work out why, but no matter what I do, I seem to get very inconsistent results…
    – Title container with post name and no title below (what I want).
    – Title container with ‘blog – latest news’ with or without title below.

    So basically I want to make sure that the title bar is always displayed and always contains the post name, and that the title text is never displayed. I have a feeling the inconsistencies have something to do with the advanced layout editor – many of my posts use the ‘tabs’ layout and these all seem to work fine. When I don’t use the advanced layout editor, or simply have text in columns, it behaves erratically.

    #222637

    Hey topergarden!

    You can change the single post title using this on functions.php:

    add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    function fix_single_post_title($args,$id)
    {
    if (is_single())
    {
    $args['title'] = get_the_title($id);
    $args['link'] = get_permalink($id);
    }
    
    return $args;
    }

    Add this on Quick CSS to remove the breadcrumbs on single posts:

    .single .breadcrumb.breadcrumbs.avia-breadcrumbs {
    display: none;
    }

    Regards,
    Ismael

    #223059

    Thanks Ismael,
    Unfortunately the code you gave me to add to functions.php didn’t work – the whole site came up blank when any page opened (icluding dashboard). I may have done something wrong…I simply copied the code above and pasted at the bottom of functions.php.

    CSS for breadcrumbs worked perfectly.

    #223068

    Actually, I think I may have fixed it…added it to the new functions.php of my child theme instead of the original Enfold functions.php. This seems to have fixed the single post title problem.

    I’ve still got an issue though… on many posts, the title still appears under the title bar, along with the details of the post (date, number comments, author etc). I only want the title bar to appear, not the bit below it! Here’s a screen grab showing what I mean…

    Multiple Titles
    Double titles

    #223163

    Hi!

    Add this on Quick CSS to remove the title and meta infos:

    .single .post-title.entry-title, .single .post-meta-infos {
    display: none;
    }

    Best regards,
    Ismael

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