Kadence Tutorial: Adding Advanced Search Functionality with Kadence Blocks' Search (Adv) Block

The search function in the website helps to improve content accessibility.Kadence Blocks Search (Adv) in the plugin Advanced Search BlockIt supports insertion into pages, articles, widget areas, header modules and other locations, and has strong customization capabilities.

图片[1]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能

Introduction to Search (Adv) blocks

The Search (Adv) block applies to Gutenberg Editor environment, compatible with Kadence Advanced header, sidebar, and other areas.

Common usage scenarios include:

  • Search input box at the top of the page
图片[2]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能
  • Keyword search on product pages
图片[3]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能
  • Modal search popups in collapsed menus

Search styles can be switched to standard or modal styles for greater flexibility in different layouts.

Search Style Settings

  • Standard Search Style
    The search box is always visible and is suitable for placement in theMain page area or navigation bar
图片[4]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能
  • Modal Search Styles
    Pop-up search window after clicking the button, suitable for use in locations where space is limited
图片[5]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能
图片[6]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能

Search button can be enabled in both styles, support customize button text and style.

图片[7]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能

You can set whether the search scope includes product content, suitable for the WooCommerce The site limits the type of search.

Button and Icon Customization

  • Submit button for advanced button block
图片[8]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能
  • Support for changing icons (built-in icons or customized) SVG)
  • Adjustable colors, borders, rounded corners, fonts and other appearance styles
  • Supports independent color and size settings for normal and hover states
图片[9]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能

Input Box Style Settings

Input boxes support a variety of visual control options such as fonts, colors, margins, and more:

  • Setting the maximum and minimum width
图片[10]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能
  • Custom placeholder text color and size
图片[11]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能
  • Adjust font family, font size, line height, word spacing
图片[12]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能
  • Add icons, set icon size and line widths
  • Setting rounded corners and inner margin values to optimize typographic effects
图片[13]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能

Modal Style Settings

When modal search is enabled, the search box will be hidden behind a button and pop up to show it when clicked:

  • Background can be set to solid or gradient color
  • Support close icon style adjustment
  • Control the margins and maximum size of the modal window
图片[14]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能

This style is suitable for displaying a streamlined interface in mobile pages.

Advanced Options

The search block supports the following additional settings:

  • Add top and bottom margins
图片[15]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能
  • Specify anchor IDs for easy jump location
图片[16]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能
  • Fill in ARIA tags for enhanced accessibility support
图片[17]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能
  • increase CSS Class name for easy style expansion or JS manipulation
图片[18]-完整指南:使用 Kadence Search (Adv) 块增强 WordPress 网站的搜索功能
  • Save current settings as default for quick reuse in the future

summarize

Kadence Blocks The Search (Adv) module provides a more flexible way to build searches that meets the needs of page layout, aesthetic presentation, and functionality combinations. Standard input styles and modal pop-ups allow access from different devices. Combined with themes and advanced layout tools, it helps to build a clearly structured content portal.

If you need to further refine the search scope, icon style or visual layout, you can deploy it in conjunction with the actual design of the website.


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
客服微信
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: [email protected]
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
本文作者:托尼屎大颗
THE END
If you like it, support it.
kudos274 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments