Notifications
Clear all

Search addon shortcode question

3 Posts
2 Users
1 Reactions
657 Views
Posts: 2
Customer
Topic starter
(@david-chastain)
Member
Joined: 1 year ago

Hi, I posted this in the fre plugin forum by mistake, reposting it here : )

I just bought the Search addon and it works great overall. Can you point me to any info on options for customizing the shortcode version of the form, [commSearch]? I've placed it on a page, and it works, but I'm hoping to accomplish a couple of things, basically all boils down to are there action hooks / filters for this plugin specifically, or any way to modify the display templates:

  1. Add a more prominent More link, or ideally link the whole search result.
  2. Add a Reply button or link to each result, that would link directly to the reply section of that comment.
  3. Start with empty results till something is typed, the default seems to spit everything out and it's a little overwhelming!

There's more that I'd like to do, but I'll start there, maybe it's possible to add a template in the child theme for results, or use a WP filter in functions.php?

Thanks!

David

2 Replies
Astghik
Posts: 6146
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

Hi David,

You can use the wp_list_comments_args hook and change the class.WpdiscuzWalker.php or wpDiscuzSearchWidgetWalker files as you like.  

Reply
1 Reply
Customer
(@david-chastain)
Joined: 1 year ago

Member
Posts: 2

@astgh Thanks for this, is there a way to modify those files without changing core plugin files though? I'd love to future-proof changes so that I can still safely update the plugin.

I was going to add a new topic but this is likely related: I'm hoping to exclude comments from search results on a specific post ID. I don't see a setting that would do this, but would love to know if there's any hook built in that I can leverage. Even just adding the post->ID as a class name in the search results would let me hide them visually.

Reply
Share:
Scroll to top