solosails
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] SSL Checkout now broken with 2.2.1Great!
Hi Peter,
Thanks for your response.
If it’s going to be updated I’ll leave it for now as it’s not causing all that much harm for the moment.
Thanks again, Andrew
You Can Change them, to what you want…
add_filter( 'aioseop_title', 'my_title_filter' ); function my_title_filter( $title ) { if ( is_post_type_archive( 'product' ) ) { return "xxxtitlexxx"; } return $title; } add_filter( 'aioseop_description', 'my_description_filter' ); function my_description_filter( $description ) { if ( is_post_type_archive( 'product' ) ) { return "xxxdescriptionxxx"; } return $description; }Bump
Any ideas on this one anybody?
Cheers
add_filter( 'aioseop_title', 'melanie_woocommerce_title' ); function melanie_woocommerce_title( $title ) { if ( is_post_type_archive( 'product' ) ) { return "xxxtitlexxx"; } return $title; } add_filter( 'aioseop_description', 'melanie_woocommerce_description' ); function melanie_woocommerce_description( $description ) { if ( is_post_type_archive( 'product' ) ) { return "xxxdescriptionxxx"; } return $description; }Hi there,
Yes, sorry for the extra confusion!
There are two parts in your snippet, one for the title and one for the description. But, if you study both your posted snippet and mine, you can see which bits are important and which can be replaced.
Sorry once again for muddying the water!
I have just done this, but it does seem amazing that Google doesn’t automatically ignore sitemaps, why would this be of any interest to anyone?
This is what I have used which works for me…
// Change page title for Shop Archive page add_filter( 'wp_title', 'title_for_shop' ); function title_for_shop( $title ) { if ( is_shop() ) { return __( 'WHATEVER YOU WANT THE PAGE TITLE TO BE HERE' ); } return $title; }Hope that might help (hopefully not confuse the situation!)
I had a similar problem, and added this to my themes functions.php which sorted it out…
// Change page title for Shop Archive page add_filter( 'wp_title', 'title_for_shop' ); function title_for_shop( $title ) { if ( is_shop() ) { return __( 'WHATEVER YOU WANT THE PAGE TITLE TO BE HERE' ); } return $title; }Hope that may help
I’ll take your word for it on that matter!
Cheers.
Ah, I am learning slowly …
In PHP use || instead of OR
Thanks, Andrew
Hi Peter,
Thanks very very much.
I guess the variations setting is to do with woocommerce, but it appears not to do anything, which is why I was asking about it here.
The code seems to be working with no issues, so hopefully it should do the trick for now until the next update.
Thanks again, Andrew.
OK, I’m really pushing my luck now,,,
I have just taken my bit of code that I pasted before your reply and deleted it and stuck the relevant bit into your code like so …
// Add noindex to product attributes/variations add_filter( 'aioseop_robots_meta', 'solosails_noindex_size_taxonomy' ); function solosails_noindex_size_taxonomy( $robots ) { if ( is_tax( 'pa_size' ) OR is_product_category() ) $robots = 'noindex,follow'; return $robots; }Does that look right to you?
Thanks, Andrew
Fantastic Peter, thank you, beyond the call of duty.
Can I ask what the variations option in AIOSEOP noindex settings affects?
Thanks, Andrew