ibrempashaev
Member
-
Posts
17 -
Joined
-
Last visited
ibrempashaev's Achievements
Newbie (1/14)
1
Reputation
-
Thank you! If so, please consider adding automatic JSON-LD Breadcrumblist generation based on Primary Categories as an option under General settings -> Breadcrumbs. That would be very nice and useful Moreover that can allow finally to get rid of other plugins, which are used just for JSON-LD Breadcrumblist for Google. As far as I know Yoast don't have this option for now, it creates markup for JSON-LD Breadcrumblist silently and automatically if breadcrumbs option is on (even if webmaster not used function yoast_breadcrumb in theme template code).
-
Good day! I use some other plugin to generate JSON-LD Breadcrumblist for Google (Rank Math is not able to do that for now ). It was easy to connect this plugin with Yoast "Primary Category" to generate JSON-LD breadcrumbs just for post's primary category. Example below: $term_list = wp_get_post_terms($post->ID, 'category', ['fields' => 'all']); foreach($term_list as $term) { if( get_post_meta($post->ID, '_yoast_wpseo_primary_category',true) == $term->term_id ) { // this is a primary category } } Questions: 1) Are there any solution for Rank Math primary category (Make Term Primary option) is it detectable from other plugins? 2) Has Rank Math Dev team any plans to implement JSON-LD Breadcrumblist generation? I can explain why it is important: Some people don't want to have visible Breadcrumbs (in code or visually on page/post), but they do want to have nice looking snippet in Google with the breadcrumbs in the same time It looks like new version of Yoast adds JSON-LD Breadcrumblist automatically if it's breadcrumbs option is checked.
-
Working solution. Breadcrumbs separator: nav.rank-math-breadcrumb p span.separator:before { content: " \F0DA"; font-family: FontAwesome; } Homepage label (it works normally with two spaces for homepage label after glyph code only ) nav.rank-math-breadcrumb p:before { content: "\F015 "; font-family: FontAwesome; } Plugin settings: Final breadcrumbs:
-
It's no use... 1) Of course I can setup css like so: nav.rank-math-breadcrumb p span.separator:before { content: " \F0DA"; font-family: FontAwesome; } But then how to setup icon for label in the breadcrumbs beginning (before homepage link)? Plugin code creates special label before homepage link if label is not empty only. But I don't want this visible text label there, I need to setup _just_single_icon_ - fa-home This CSS is not working if I didn't setup the label in Rank Math breadcrumbs settings: nav.rank-math-breadcrumb p span.label:before { content: "\F015"; font-family: FontAwesome; } 2) It's not user-friendly. For example, Yoast allows such modification through admin panel
-
seo-by-rank-math/includes/class-breadcrumbs.php: foreach ( $crumbs as $key => $crumb ) { $html .= $args['before']; if ( ! empty( $crumb[1] ) && $size !== $key + 1 ) { $html .= '<a href="' . esc_url( $crumb[1] ) . '">' . esc_html( $crumb[0] ) . '</a>'; } else { $html .= '<span class="last">' . esc_html( $crumb[0] ) . '</span>'; } $html .= $args['after']; if ( $size !== $key + 1 ) { $html .= '<span class="separator"> ' . $this->settings['separator'] . ' </span>'; } } If I change $this->settings['separator'] to '<span class="fa fa-caret-right" />' then it works perfectly! Also I tried copy-paste final page source code from Chrome, it looks escaped -- < instead of < and > instead of > So, after all, this separator value seems to be stored as escaped text. Could you please fix this?
-
Hello! The question is in title : ) I tried different variants with no success, I see just a plain text. These are not working: <i class="fa fa-caret-right" /> <span class="fa fa-caret-right" /> <div class="fa fa-caret-right" /> And I think point is that Rank Math wraps custom separator in span tag, and the fact is confirmed by final page source code... Is this fixable in any way?