syamilmj / aqua-page-builder

Aqua Page Builder WordPress Plugin
238 stars 113 forks source link

Is it possible to make this work with Yoast SEO? #130

Closed JosiasSena closed 10 years ago

JosiasSena commented 10 years ago

I am using aqua page builder but Yoast only seems to work with content right on each page/post.

Is there a way to make aqua page builder work with Yoast SEO?

syamilmj commented 10 years ago

I don't remember exactly the codes/procedure, but there is a hook on Yoast where you can force it to "read" shortcodes within the content.

Better contact Yoast support and ask them about this.

Cheers

JosiasSena commented 10 years ago

@syamilmj oh really? that's good to know, i will see if i find this out my self, if i cant i will contact them. I hope that you are right.

syamilmj commented 10 years ago

Sure. Do update here when you do/don't find a workaround.

mobilitysherry commented 10 years ago

Any solution for this yet? I have the same problem. Yoast Wordpress SEO doesn't pick up any content from the Aqua Page Builder templates. I can't find any info about this hook you mention. I know Site Origins's Page Builder has added this integration, but I really don't want to switch Page Builders at this point. Any idea what the hook is? More importantly, when do you think you'll have Page Builder working with Yoast SEO Wordpress? Thanks.

cfloth commented 10 years ago

By default, the Yoast plugin strips out all short codes before analyzing the page content. To change it, you need to modify the 'wpseo_strip_shortcode' function in the plugins/wordpress-seo/inc/wpseo-functions.php file to render out all shortcodes:

function wpseo_strip_shortcode( $text ) { return do_shortcode( $text ); } (as explained here: http://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-shortcodes-bugging-out-the-page-analysis-on-seo-by-yoast) WARNING: This change will most likely get overwritten whenever you update the plugin. In which case, you will just need to make the change again after updating.

@syamilmj The Yoast SEO plugin does apparently have a 'wpseo_pre_analysis_post_content' filter that they talk about here: https://yoast.com/wordpress-seo-content-analysis/

I haven't researched it far enough to recommend how this can be added to the page builder plugin, but I wanted to pass the information along to you. (In case you figure it out first)

cfloth commented 10 years ago

Ok, managed to use the filter by modifying the functions.php and adding this:

function seo_data($post_content){ return do_shortcode($post_content); } add_filter('wpseo_pre_analysis_post_content','seo_data'); (As explained here: http://wordpress.org/support/topic/how-to-wpseo_pre_analysis_post_content)

Then I was able to remove the change I made to the wpseo-functions.php file mentioned earlier.

mobilitysherry commented 10 years ago

Do I have to make the change to the wpseo-functions.php file first (and then remove it later), or can I forego that and just make the above change to the functions.php file?

cfloth commented 10 years ago

Just make the change to the functions.php file and it should work.

syamilmj commented 10 years ago

Thanks for the @cfloth I'll direct anyone with same questions here :) :thumbsup:

monecchi commented 8 years ago

Unfortunately this is now an obsolete approach. Yoast WordPress SEO plugin now requires to use a a function which involves JS .