Tagged: blog title, post title, title container
-
AuthorPosts
-
February 11, 2014 at 10:40 pm #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.
February 12, 2014 at 9:56 am #222637Hey 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,
IsmaelFebruary 12, 2014 at 9:38 pm #223059Thanks 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.
February 12, 2014 at 9:54 pm #223068Actually, 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…
February 13, 2014 at 4:26 am #223163 -
AuthorPosts
- You must be logged in to reply to this topic.