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

    #249049

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

    #249267
    This reply has been marked as private.
    #249607

    Hi!

    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,
    Peter

    #249718

    Hi 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

    #250590

    Hi!

    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!
    Devin

    #250610

    Hi 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 error

    With theme not pointing to blogpage:
    – Page 1 of the blog displays no sidebar
    – Page 2 shows but in a different (default) Site-template

    I 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,
    Marcus

    #250679

    Hey!

    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!
    Peter

    #252834

    Hi!

    I am currently reworking some blog settings so it does not throw any “not found errors” when on a subpage. We will release the update on monday (look out for version 2.7)

    If you got any issues with the next version please let us know :)

    Regards,
    Kriesi

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