Suggestion: Home Link pointing to Blog
-
Hi this is a great plugin! On my site I have a separate page for posts and was thinking of changing this code so that the user gets to the posts page (my blog) instead the whole website:
protected function add_crumbs_front_page() { //$this->add_item( __( 'Home', 'breadcrumb-block' ), esc_url( user_trailingslashit( home_url() ) ), [ 'rel' => 'home' ] ); $this->add_item( __( 'Home', 'breadcrumb-block' ), esc_url( user_trailingslashit( get_post_type_archive_link( 'post' ) ) ), [ 'rel' => 'home' ] ); }
It could be an option in the block settings, what do you think? Or does it make no sense? I have a similar breadcrumb on my woocommerce page where “home” points to the home of the store, not the home of the whole website.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Suggestion: Home Link pointing to Blog’ is closed to new replies.