• Hi, our exports include site search forms that do not work on the exported site. One search form is embedded on the front page and simply “does nothing.” The rest are search widgets appearing on just about every page, which redirect to the dynamic site instead of the static export. I’d like to keep the front page in the export but without a search form.

    Is there a way to exclude the search form or any other part of a web page without excluding that particular page itself?

    Thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @ravanh,

    right now we don’t support excluding elements from the DOM while exporting.

    While I understand the idea behind it, I’m worried that this would drastically slow down the entire process (searching the DOM is expensive regarding runtime).

    I don’t want to promote anything here, but we have a working solution to that within Simply Static Pro: https://simplystatic.com/docs/set-up-search/

    All you need is to add the HTML tag (or class or ID), and Simply Static will replace the search form with one that works on a static site (using a local JSON file via Fuse.js or Algolia as an external API).

    Cheers,
    Patrick

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Thanks for the suggestion ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to exclude elements on pages?’ is closed to new replies.