Home › Forums › Stripe Payments Plugin › Undesired content from Stripe payment plugin getting indexed by Google, Bing etc
- This topic has 3 replies, 2 voices, and was last updated 2 years ago by Admin.
May 20, 2021 at 10:43 am #3969zizzleParticipant
Just wanted to let the developers know that there is code in the Stripe Payment (free) plugin that is being indexed by Google and other search engines. There may be other similar type of content in the code that will be treated the same by Google as well.
Can the developers provide a fix for this with a plugin update? Here are some links regarding the issue of keeping Google from indexing certain parts or elements of a website.
Please advise on a solution to fix this issue.
Thanks!May 21, 2021 at 12:46 am #3970AdminKeymaster
There is nothing wrong with this. That is just HTML code of the button. If you have buttons on a page, it can be indexed (if that page is indexed). There is no harm in that. Trying to massage or play around with the indexing is not wise. Search engines are super smart and they figure out what is really true content and not.
If you don’t want certain pages to be indexed, then just edit the page or post and use the SEO plugin to specify the page to have no-indexing.
Generally, it is not wise for our plugin to mess with indexing since that is the job of a SEO plugin. You should have a SEO plugin that can allow you to customize the SEO properties of a page (including description).May 21, 2021 at 11:21 am #3971zizzleParticipant
Hi thanks for the info. I’m experienced with SEO and using Rankmath with this site. I am familiar with how to index/noindex follow/nofollow desired pages/posts, etc.
I didn’t mean to suggest it was a problem/bug, I just happened to notice depending on how you search for the site Google will bring up different description results even if you have thoroughly configured the site with SEO plugin with set page/post meta for titles/descriptions. Most of the time the SEO set title/descriptions are provided by Google, but sometimes Google will show that text in the descriptions on search results.
That’s why I provided those links because they address this specific issue. For example,
But I understand if you don’t want to fiddle with this as without thorough testing three is always the chance it could have unexpected or undesirable effects for plugin users. I just thought from reading about this issue that it would be fairly easy & straight forward to implement.
Perhaps I will try experimenting with variables within the <div class=”asp_product_buy_button”> to see if I can get Google to drop the text from search results.
ThanksMay 23, 2021 at 4:51 am #3972AdminKeymaster
I understand. I would prefer to handle this using a filter hook potentially. We can add a new filter or action hook that you can use to add the desired no-index parameters to your site. This will ensure that there cannot be any unexpected result on a lot of other sites that doesn’t want it.
You can suggest a hook that will help you do this for your site. You can also create a pull request on the Stripe plugin’s repository:
- You must be logged in to reply to this topic.