Home › Forums › Pro Support › What this means on image code?
Tagged: IMAGE GALLERY, stoppropagation
- This topic has 8 replies, 2 voices, and was last updated 4 weeks, 1 day ago by
elvin.
-
AuthorPosts
-
December 31, 2020 at 12:10 pm #24816
Sara
ParticipantHello,
I am making an image gallery with wpshowposts on my site and I see that on a tag code appears this code “onclick=”event.stopPropagation()” what does this code means? That it means that stops link juice from propagate and affect SEO on my website? does it affects SEO in any way?
Thanks and Happy New Year!!
Sara
December 31, 2020 at 12:22 pm #24818Sara
ParticipantAnd also on title code appears like this rel=”bookmark” how can I remove that from a tag code?
Thanks!
January 3, 2021 at 7:20 pm #24889elvin
ModeratorHi,
I am making an image gallery with wpshowposts on my site and I see that on a tag code appears this code “onclick=”event.stopPropagation()” what does this code means? That it means that stops link juice from propagate and affect SEO on my website? does it affects SEO in any way?
Can you link us to the site in question? WPSP doesn’t add inline attribute
onclick=”event.stopPropagation()
.Perhaps it was added in by a plugin or filter.
And also on title code appears like this rel=”bookmark” how can I remove that from a tag code?
This one is added on the date element’s attribute by default.
We can remove this by using the
wpsp_date_output
filter.apply_filters( 'wpsp_date_output', sprintf( '<span class="wp-show-posts-posted-on wp-show-posts-meta"> <a href="%1$s" title="%2$s">%3$s</a> </span>', esc_url( get_permalink() ), esc_attr( get_the_time() ), $time_string ) );
January 27, 2021 at 5:02 am #25967Sara
ParticipantHello Elvin,
Yes it does here is website: https://todopiscinas.org/jilong/
Check out after where it says “Otras marcas de piscinas que podrían interesarte” which is a WPSP gallery.
Thanks
January 27, 2021 at 5:48 am #25972elvin
ModeratorCan you try disabling ALL plugins except WPSP and see if it still appears?
WPSP doesn’t add this by default as shown in the code here:
https://github.com/tomusborne/wp-show-posts/blob/35e410d7800273fc66f211c0f80d553e95d17f83/inc/functions.php#L183While it’s possible too that it is added using
wpsp_image_data
filter on purpose, I highly doubt that’s the reason to have it because even the non WPSP images within the page’s content has the same attributes as shown here: https://share.getcloudapp.com/mXu1RqrJAs for what stopPropagation() does, It’s quite difficult to explain it. Perhaps the demo on this answer shed light to it.
https://stackoverflow.com/a/6785029January 28, 2021 at 4:45 am #26045Sara
ParticipantYes I tried that disabling all plugins and still remains.
Is there away to remove those tags?
January 29, 2021 at 4:29 am #26085elvin
ModeratorYes I tried that disabling all plugins and still remains.
Is there away to remove those tags?
The way to remove it is by removing what’s adding it.
And as previously mentioned, it is not added or controlled by the plugins so I’m afraid this is out of the plugin’s scope of support.
You may have to check for scripts within your site that adds this in.
January 31, 2021 at 9:53 am #26169Sara
ParticipantI am sorry, what do you mean its out of the plugin’s scope of support? Its your plugin that is doing this. What other script can be doing this? Any plugin in mind?
January 31, 2021 at 10:59 pm #26195elvin
ModeratorYou can actually disable WPSP as well and check your content’s image links if they still have
event.stopPropagation()
.Check this demo site too: https://demos.wpshowposts.com/cards/
And this demo site as well: Demo Sandbox site
You can inspect both sites and you’ll see that none of the lists have this attribute.
-
AuthorPosts
- You must be logged in to reply to this topic.