Divi and rich snippets
-
In my child theme page.php file I placed the following code at the very bottom of the loop:
if(is_plugin_active('seo-by-rank-math/rank-math.php')) { echo "<!-- shortcode snippet -->" . do_shortcode('[rank_math_rich_snippet]'); }
Which renders out:
<div id="rank-math-rich-snippet-wrapper"> <h5 class="rank-math-title">Home</h5> <div class="rank-math-review-image"> <img src="https://cdnname.com/content/uploads/sites/282/2019/09/25075152/company_logo_blue_green-300x300.jpg"> </div> <div class="rank-math-review-data"> [et_pb_section fb_built="1" _builder_version="3.29.3" background_color="rgba(12,0,0,0.43)" background_image="https://networkname.com/subblogname/wp-content/u </div> </div>
Which is completely unusable…and not making sense.
You guys should test against the biggest paid theme in the world…divi.
Things like “do_shortcode” need to be used possibly when figuring out data?
I don’t know is this a bug?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Divi and rich snippets’ is closed to new replies.