Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select wich content is open for search? #3

Open
dallasantwerp opened this issue Oct 28, 2016 · 0 comments
Open

Select wich content is open for search? #3

dallasantwerp opened this issue Oct 28, 2016 · 0 comments

Comments

@dallasantwerp
Copy link

dallasantwerp commented Oct 28, 2016

I have a teaser with image, title, short description and recent comment. I would like the search to only look for a match inside the title and short description. These fields i give a class 'searchable'.

filtersSelector: ".searchable"

The plugin doesn't hide an item if there is a match inside a tag that does not have the .searchable class. In the code example below, the search "Name Surename" would have a match, but this tag does not have the ".searchable" class.

What im i doing wrong?
Is there more documentation about the plugin options?

<div class="isotope-item">

   <div class="image-wrapper">
      <img src="images/default/bg3.jpg" alt="">
   </div>

   <div class="info">
      <h2 class="title searchable">Lorem Ipsum Dolor Aside kenneth</h2>
      <p class="description searchable">Nullam quis risus eget urna mollis.</small>
   </div>

   <div class="comment">
      <p>Name Surename</p>
      <p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
   </div>

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant