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 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.
  • PDFs not appearing in search result

    Bugs and Fixes
    2
    0 Votes
    2 Posts
    759 Views
    EpsilonAdminE
    Hi @blixhavn Do you remember which plugins you've installed recently? Some of them may conflict with WPFTS Pro, especially when making a search at the front end. Please try to disable those plugins temporarily. If it does not help, let's connect with TeamViewer so I can solve this issue faster (write me a private message or via Live Chat at the main page).
  • Search Engine status remains awaiting

    Bugs and Fixes
    10
    0 Votes
    10 Posts
    2k Views
    EpsilonAdminE
    Hi @davide-merlitti It happens because you have problems with wp-cron tasks or DNS configuration. If you have your website hosted locally, often the domain name is just recorded in /etc/hosts file. This is normally okay for browser access (and this is why indexing is coming well but slow when your WP admin is open). But PHP can not read /etc/hosts by some reason and thus indexing procedure can not go internally. Please read this solution and try it. Please let me know if it helps or not. Thanks!
  • 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