Get WPFTS Pro today with 25% discount!

Add button or menu link to search results

Bugs and Fixes
7 2 1.5k 2

  • Hello, I have a site that has content in a button or menu item that links to an external URL. Is it possible to have this show up in the search results? Site uses Avada theme and buttons are part of the builder. If not, will adding a section with a title and short description within a page and turning on TXT in the Search and Output settings allow the content to show in search results?


  • Hi @melanie-james

    Yes, WPFTS Pro can do this trick. I guess you have inserted the button from the Visual Builder library? In this case, the raw text view of the post content should show the shortcode of this button with the link to the file inside (in the "link" or "URL" attribute).

    WPFTS Pro can handle such cases with an additional small PHP code addon, which I will provide to you.

    Please copy the raw text of your post content here so I can create such an addon.

    Thanks!


  • @epsilonadmin said in Add button or menu link to search results:

    your post content

    Hello! Thanks for the response. Here is the button shortcode with the URL:

    [fusion_button link="https://www.chinobasinprogram.org/" text_transform="" title="" target="_blank" link_attributes="" alignment="" modal="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" color="default" button_gradient_top_color="" button_gradient_bottom_color="" button_gradient_top_color_hover="" button_gradient_bottom_color_hover="" accent_color="" accent_hover_color="" type="" bevel_color="" border_width="" border_radius="" border_color="" border_hover_color="" size="" stretch="default" icon="" icon_position="left" icon_divider="no" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset=""]Chino Basin Program[/fusion_button]

    The theme is Avada using the Fusion Builder. Thanks!


  • Hi @melanie-james

    Okay, thanks for the example. One more question: do you want this link to be shown inside the Smart Excerpt output or just below it? Are you using Smart Excerpts at all?


  • @epsilonadmin Hello! Yes, we're using Smart Excerpts and screenshot attached of the settings if you need it.

    Screen Shot 2021-01-21 at 5.43.44 PM.png

    If possible, it'd be nice to have it inside to match the style of the others. All pages/post show the excerpt in the results and the PDF's just simply are a link. If it can function like the PDFs and just take the person to the external link, that'd be great.

    Thanks!


  • Hi @EpsilonAdmin, I wanted to see when this code addon would be ready for use? Thanks!


  • Hi @melanie-james

    First of all, to see attachment contents in Smart Excerpts with Avada theme you need to implement a small patch, which removes the incompatibility of Avada theme.

    Please read more here
    https://fulltextsearch.org/forum/topic/11/solved-avada-theme-excerpt-do-not-show

Suggested Topics

  • No PDF results

    Bugs and Fixes
    2
    0 Votes
    2 Posts
    61 Views
    EpsilonAdminE
    Hi @ultraman Thank you for your message. Since you can see results in the Sandbox, the index is fine. No need to rebuild it again. The problem is on the "display results" side. With your configuration, the first idea I think is to install the pre-release WPFTS version that contains the latest fix of the Divi Addon for WPFTS. I've sent you the link in private messages. Please install it and tell me if it works fine or not. In case it still does not work, please tell me which version of Divi Theme you are using, the WPFTS plugin version, and also please explain your search behaviour. Simple try the request like this: https://yourdomain.com/?s=<search_phrase> And notice if it returns any result. Thank you!
  • Inconsistency in search result

    Bugs and Fixes search not found inconsistency
    2
    0 Votes
    2 Posts
    681 Views
    EpsilonAdminE
    Hi, @Amine The WPFTS Pro version you are using is very outdated. Please consider upgrading to 2.46.x which is the latest. It has a completely new indexing and searching algorithm and it should solve your issue.
  • Multi word search showing an empty screen

    Bugs and Fixes
    3
    1 Votes
    3 Posts
    805 Views
    W
    @EpsilonAdmin - Thank you, that worked. We appreciate the help!
  • Number of search results

    Bugs and Fixes
    5
    0 Votes
    5 Posts
    1k Views
    W
    i feel stupid now...YES! It works...
  • Very slow search query on large wordpress site

    Bugs and Fixes
    13
    0 Votes
    13 Posts
    3k Views
    mazcabralM
    @EpsilonAdmin Great! but I still haven't received the email with the link. If possible, please send me back so that I can install and do the tests. Thank you so much!

Be the first to read the news!

We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

Join Us Now!

We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

ewm-logo-450

The forum powered by NodeBB | Contributors