#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Simplified Layout
Simplified Layout H...
Anchor links to quo...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Suggestion [Solved] Anchor links to quoted posts

    Last Post
  RSS
Wendell
 Wendell
(@wendell)
Estimable Member

When someone replies with a quote, it would be great if a link could be added to the quote somehow that would take you back to the quoted text (see attached image).

If that's not possible, perhaps the quoted text could just link back to the post quoted from instead of the specific text within the post.

 quote-link.png
Topic starter Posted : October 18, 2021 7:37 pm
Topic Tags
quote quote link
Chris
 Chris
(@chris)
Support Team Admin

Hi @wendell,

1. Download and Install "Code Snippets" Plugin for WordPress

2. Open Dashboard > Snippets > Add New 

3. Write a Title

4. Add the Below Code, Check the "Only run on site front-end" Checkbox and press Save Changes and Activate

add_action( 'wp_footer', function () { ?>
<script>

	jQuery(document).ready( function($){
		let blockquotes = $('blockquote[data-postid]');
		blockquotes.css('cursor', 'pointer');
		blockquotes.on('click', function(){
			let postid = parseInt( $(this).data('postid') );
			if( !isNaN(postid) ) window.location.hash = 'post-' + postid;
		});
	});

</script>
<?php } );

 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Posted : October 19, 2021 11:49 am
Wendell and VereK liked
Wendell
 Wendell
(@wendell)
Estimable Member

@chris 

Wow! Thank you for this. 🙂

I've implemented it with a custom functions plugin and it works great.

If I may be so bold, do you think it could be implemented with an icon and link instead of the entire blockquote box? https://share.getcloudapp.com/4guP5q9k (just a thought, certainly not required) 🙂

Topic starter Posted : October 19, 2021 8:33 pm
Chris
 Chris
(@chris)
Support Team Admin

@wendell,

There are many changes needed for that, not only coding also design, so it will take time to finish the work, we have added it in our to-do list, so it will be added in wpForo 2.0.0 update.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Posted : October 20, 2021 10:50 am
Wendell liked
Wendell
 Wendell
(@wendell)
Estimable Member

Thanks Chris! 🙂

Topic starter Posted : October 20, 2021 12:48 pm
Chris liked
  All forum topics
  Previous Topic
Next Topic  
Topic Tags:  quote (9), quote link (1),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • wpforo widgets not showing

    By umais, 11 hours ago

  • Error 2253 Root Cause

    By aaronmckeon, 13 hours ago

  • Forum page

    By Charlespresh, 2 days ago

  • How can I make notification bell appear site wide?

    By marios, 2 days ago

  • wpForo not working correctly with Silk browser on Fire 7 Tablet

    By starman71, 2 days ago

  • Style Guests see "Add Topic" button - even if settings are right

    By DanielOfAnu, 2 days ago

Topic Tags

  • translation49
  • css49
  • plugin conflict48
  • seo45
  • new features43
  • buddypress42
  • ultimate member40
  • avatar40
  • forum40
  • moderation38
  • login38
  • registration36
  • threaded layout35
  • cache33
  • editor32
  • menu32
  • shortcode30
  • spam29
  • phrases28
  • forum accesses28
View all tags (2161)

Recent Posts

  • RE: wpForo 2 Major Update is Imminent!

    Damn, i was really looking forward to this feature as I...

    By Macky, 8 hours ago

  • RE: How can i remove the Buttons under Name?

    @y-3 ##wpforo #wpforo-wrap .wpfl-1 .wpforo-post .wpf...

    By Tutrix, 10 hours ago

  • RE: Error 2253 Root Cause

    Hi @robert - Thanks. I have reviewed those threads and...

    By aaronmckeon, 10 hours ago

  • wpforo widgets not showing

    Hello I cant see wpforo widget in the WordPress widge...

    By umais, 11 hours ago

  • RE: When is the Update Coming?

    @robert thanks mate 🙂

    By Macky, 17 hours ago

  • RE: Guests see "Add Topic" button - even if settings are right

    Hi @danielofanu, Check this post please:

    By Chris, 22 hours ago

  • RE: wpForo not working correctly with Silk browser on Fire 7 Tablet

    Add the forums menu items to your main menu 😉

    By Tutrix, 1 day ago

Share:
Share
Tweet
Share
  Forum Statistics
20 Forums
9,747 Topics
49.4 K Posts
7 Online
43.2 K Members

Latest Post: wpForo 2 Major Update is Imminent! Our newest member: Заказать Сайт В Омске Под Ключ... Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation