[Support request] What this means on image code?

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support What this means on image code?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #24816
    Sara
    Participant

    Hello,

    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

    #24818
    Sara
    Participant

    And also on title code appears like this rel=”bookmark” how can I remove that from a tag code?

    Thanks!

    #24889
    elvin
    Moderator

    Hi,

    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
    ) );
    #25967
    Sara
    Participant

    Hello 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

    #25972
    elvin
    Moderator

    Can 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#L183

    While 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/mXu1RqrJ

    As 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/6785029

    #26045
    Sara
    Participant

    Yes I tried that disabling all plugins and still remains.

    Is there away to remove those tags?

    #26085
    elvin
    Moderator

    Yes 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.

    #26169
    Sara
    Participant

    I 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?

    #26195
    elvin
    Moderator

    You 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.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.