Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. customize thumbnail grid category filter

customize thumbnail grid category filter

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 63 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MariusF
    wrote on last edited by
    #1

    Hey!
    I'm working on a website and would like to add a specific feature:

    When clicking a category filter: a short description text of the category should appear between the filter list and the thumbnail grid.

    This is how the website looks so far:
    http://build.ribl.org/

    Would be happy to get some advice on how to approach this task with custom code...

    thank you very much!

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      bind click events to the filters Screenshot 2023-07-26 at 21.16.57.png
      https://laytheme.com/documentation/custom-javascript.html#binding-click-events

      read out the data-slug attributes:
      https://api.jquery.com/attr/

      jQuery("…").attr("data-slug")

      insert a div element into the dom at the right location containing some text. the text depends on the data-slug value
      https://api.jquery.com/insertafter/

      you will probably also have to check if that div element exists already and then just replace its content:
      https://api.jquery.com/html/

      and then style this with css

      good luck, it will be a little hard to do if you haven't written javascript before

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      I also code custom websites or custom Lay features.
      šŸ’æ Email me here: šŸ’æ
      info@laytheme.com

      Before you post:
      1. When using a WordPress Cache plugin, disable it or clear your cache.
      2. Update Lay Theme and all Lay Theme Addons
      3. Disable all Plugins
      4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

      This often solves issues you might run into

      When you post:
      1. Post a link to where the problem is
      2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
      3. If the problem is difficult to explain, post screenshots / link to a video to explain it
      Online Users
      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
      laytheme.com
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Search