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
    56 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!
  • No valid search resulds, whats wrong?

    Bugs and Fixes
    10
    1 Votes
    10 Posts
    671 Views
    EpsilonAdminE
    Hi @stark Unfortunately, WPFTS does not work with PODS custom fields "from the box", so custom code exists somewhere. I think your developer used another way to add data to the search index. We need to ask him or alternatively, I could check your code myself, it should not be too long. In this case please send me admin access to your resource using a private message. Thanks.
  • 0 Votes
    1 Posts
    157 Views
    No one has replied
  • Search working only when logged-in

    Bugs and Fixes
    1
    0 Votes
    1 Posts
    375 Views
    No one has replied
  • Number of search results

    Bugs and Fixes
    5
    0 Votes
    5 Posts
    1k Views
    W
    i feel stupid now...YES! It works...

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