這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Hide and Seek Header

外掛說明

Built for Avada by ThemeFusion

Hide and Seek Header frees up more space for a web page by hiding the sticky header when scrolling down. The sticky header will reappear when scrolling back up to make site navigation easier.

Features

  • Hides the sticky header on scroll down only.
  • Option to disable on mobile (devices smaller than 800px wide—the Avada default).
  • Option to enable fade animation on hiding.
  • Option to enable landing page mode. The plugin hides the standard header (non-sticky) so only the sticky header displays on scrolling up.
  • Option to decrease scroll-up sensitivity. Helpful for reducing flicker on touch screens.
  • Super simple install. Two steps and your done.
  • Cleans up the database on uninstall.
  • Lightweight—about 30 KB zipped.

Usage

Your site must be using Avada by ThemeFusion. The plugin settings are under Settings > Hide and Seek Header.

Disable on Mobile

By default, the plugin will hide headers for all devices. Check Disable on mobile? to keep the header visible on small devices. The current default breakpoint is 800px.

Uncheck to hide the header on all devices.

Enable Animation

The animation is disabled by default. Check Enable animation? to turn on a 0.5 second fade-out effect when the header begins to disappear.

Enable Landing Page Mode

Check Landing page mode?, if you want to hide the standard top header and menu on page load. This is great for minimising distractions.

Click Save all changes to save your options.

Disclaimer

The Hide and Seek Header plugin and its author are not affiliated with Avada or ThemeFusion in any way.

螢幕擷圖

  • Preview of the plugin in action. Sticky header disappears on scroll down. Reappears on scroll up.
  • Plugin settings page.
  • Landing page mode. No distracting header or menu on page load.
  • Scroll-up sensitivity setting. This will delay the reappear slightly to avoid annoying flicker on touch screens.

安裝方式

  1. Upload the plugin zip file to the /wp-content/plugins/hide-and-seek-header directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

常見問題集

Will this plugin work for other themes?

Version 1.0.1 was built for Avada. It hasn’t been tested with other themes. Please fork a copy and change it to work for other themes, if wanted.

Can I change the mobile breakpoint?

Yes. You can write custom CSS to override the media query for the .hideandseek-hide-down class.

Can I change the default fade-out animation?

Yes. You can write custom CSS to override the animation style and timing in the .hideandseek-hide-down class.

Below is the CSS it would take to increase the animation duration and responsive breakpoint at the same time.

/* Custom disable for devices smaller than 1024px. */
@media screen and (max-width: 1023.998px) {
    .hideandseek-hide-down {
      visibility: visible !important;
      opacity: 1 !important;
      transition: none !important;
    }
}

/* Custom fade increase to 5.5 seconds. */
@media screen and (min-width: 1024px) {
    .hideandseek-hide-down {
      visibility: hidden;
      opacity: 0;
      transition: visibility 5.5s, opacity 5.5s linear !important;
    }
}

使用者評論

2022 年 1 月 31 日 2 則留言
did not work on phlox theme theme:phlox builder:elementor looks like it works with avada theme
2020 年 4 月 26 日 1 則留言
Really awsome plugin for Avada. I’ve used it on my own site. Works pretty good! Simple, slim but really meets my expectation.
閱讀全部 5 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Hide and Seek Header〉的開發相關工作。

參與者

將〈Hide and Seek Header〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.4.0

  • Removed beta label for sensitivity setting.
  • Tested on WordPress 5.7.
  • Tested on Avada 7.3.

1.3.0

  • Fixed: If mobile menu is open, large space is left on scroll down.
  • Removed extra space left by hidden header on landing page mode. See the associated GitHub issue for more details.
  • Removed extra space when using slider in parallax mode. However, you’ll need too increase height of slider by height of header to off set the negative margin from Avada. E.g., If the height slider image is 849px and the height of header is 84, then the slider’s final height should be set to 933px. This is described on the parallax setting and in the Avada docs.
  • Could not reliably repro active pointer events when header is hidden (even with mega menu). But, disabled pointer events in CSS when header is hidden to be extra sure. See the related GitHub issue for more details.
  • Tested on Avada 6.2.2 and 6.2.3.

1.2.0

  • Added scroll-up sensitivity to reduce flickering (appear/reappear) of sticky header on touch screens. (beta)
  • Refactored admin page so that setting fields line up better.
  • Added DB clean up of options on uninstall.

1.0.1

  • Reverted CSS to original v 0.0.1 code. Version 1.0 CSS for no animation broke formatting for headers 2-5.

1.0.0

  • First release. Tested on Avada 6.2.1 and 6.2.2.