Tagged: Blog, breadcrumbs, enfold
-
AuthorPosts
-
April 7, 2014 at 3:46 pm #248244
Hi,
I enabled the blog module by building it into a page with the ALB. Didn’t activate it in the Themes Options since this gives me “Page not found” errors on page 2 of the blog when i use pagination. (this would be a different Problem)
My Question is, how could i achieve, that the breadcrumbs of a single-page blog entry show the way back to the blog-overview-page and not to the category list page? this would make the navigation a lot more consistent.
and again: activating the blog via the themes menu doesn’t work for me, since then the pagination leads to “Page not found”-errors.
Best Regards,
MarcusApril 9, 2014 at 4:48 am #249049Hi Marcus!
I think it would be better to fix the first issue, try the following:
– Disable all third-party plugins
– Clean your Pages trash.
– Re-set your Permalinks
– Check if it got fixed.Best regards,
JosueApril 9, 2014 at 2:23 pm #249267This reply has been marked as private.April 10, 2014 at 7:15 am #249607Hi!
Please insert this code into the enfold/functions.php file (or child theme functions.php file):
if(!function_exists('avia_modify_breadcrumb_blog')) { function avia_modify_breadcrumb_blog($trail) { $blog_page = 20; if(get_post_type() === "post" && (is_category() || is_archive() || is_tag())) { $front = avia_get_option('frontpage'); $blog = $blog_page; if($front && $blog && $front != $blog) { $blog = '<a href="' . get_permalink( $blog ) . '" title="' . esc_attr( get_the_title( $blog ) ) . '">' . get_the_title( $blog ) . '</a>'; array_splice($trail, 1, 0, array($blog)); } } else if(get_post_type() === "post") { $front = avia_get_option('frontpage'); $blog = $blog_page; if($blog == $front) { unset($trail[1]); } } return $trail; } add_filter('avia_breadcrumbs_trail','avia_modify_breadcrumb_blog', 15, 1); }
and replace 20 with the id of your blog page.
Best regards,
PeterApril 10, 2014 at 11:11 am #249718Hi Peter,
Thanks for your reply.
Unfortunately nothing changed after pasting the code into the functions.php of the child-theme.
Still no sidebar on the Blog-overview-page, still the pagination problem, and still the category in the breadcrumbs.
I also assume, that this solution wouldn’t work with my multi-site-setup, since the blogpage in the german version would have a different ID than the blogpage of the english version, but both depend on the same functions.php ?
sorry to bother you further on, but i need at least get the pagination and sidebar problem solved….
best regards,
Marcus
April 13, 2014 at 1:24 am #250590Hi!
Try changing the theme option to point to your blog page first. Then change your permalinks to default and check if it works correctly. If so you can try re-setting them to a pretty permalink setting.
Cheers!
DevinApril 13, 2014 at 2:26 am #250610Hi Devin,
once again i tried resetting the permalinks without any change:
With Theme pointing to the blogpage:
– Page 1 of the Blog displays no sidebar
– Page 2 of the blog ends in a Page not found errorWith theme not pointing to blogpage:
– Page 1 of the blog displays no sidebar
– Page 2 shows but in a different (default) Site-templateI already provided you an adminaccount to have a look at this… Since this should be a basic feature and no fancy customization i hope you will be able to solve this.
Again: no plugins activated,
maybe this is a problem of the multi-site-installation of wordpress?best regards,
MarcusApril 13, 2014 at 8:20 am #250679Hey!
I tagged the thread for Kriesi and asked him to look into the issue. I temporarily fixed the issue by selecting a different blog style (single author).
Cheers!
PeterApril 17, 2014 at 6:20 pm #252834 -
AuthorPosts
- You must be logged in to reply to this topic.