Eid Mubarak

00
Days
00
Hours
00
Minute
00
Second
SAVE50%

Search

The aBlocks Search Block lets you add a search bar to your WordPress site for easy content discovery. This guide covers adding and customizing the block to enhance search functionality on your page or post.

Adding the aBlocks Search Block

Navigate to your WordPress dashboard. Go to the page or post where you want to add the search function. If needed, create a new page or post.  

Click the ( + ) icon to open the block options.

Adding the aBlocks Search Block

Now, you’ll see all the available blocks from aBlocks. You can either scroll through the list or use the search bar to find the aBlocks Search Block. For a quicker approach, simply type “Search Block” in the search bar, and it will appear instantly. Once you locate it, click on it to add it to your page or post.

Add the aBlocks Search Block

Now, can you find the aBlocks Search Block in the list? Simply click on it, and it will be added to your page or post. Once added, you can customize its settings to match your design and functionality needs.

Added the aBlocks Search Block

Customize the aBlocks Search Block

This guide will help you understand how to use and customize the aBlocks Search Block with simple, step-by-step instructions.

To modify the aBlocks Search Block, navigate to the right-side panel and go to Block > General. Here, you’ll find five key options to customize its design and behavior.

  1. Search
  2. Search Field 
  3. Search Button
  4. Search Result Container
  5. Search Result Item

Let’s explore each option step by step.

Customize the aBlocks Search Block

In this section, you’ll find two customization options:

  • Variant – Choose a search bar style:
    • Classic – Button on the left with a Gap setting.
    • Minimal – Adjust Button Alignment (left/right).
  • Search Source – Select search result source: Any, Post, Product, or Page.
Customize the Search sections

Search Field

The Search Field section has two main parts:

  1. Content
  2. Style

Content

In this section, you will find the Placeholder box. Customize the placeholder text (e.g., “Search for products…”) and adjust its style and behavior to fit your design.

Customize the Search Field sections

Style

In this section, you will find four customization options:

  • Color
  • Typography
  • Text Shadow
  • Text Stroke

Let’s go deeper into how each of these options works!

Color: Change the text color inside the search field to match your design.

Customize the Color option

Typography: Fully customized text style. For more details, check out our aBlocks Typography Setting Documentation.

Customize the Typography option

Text Shadow: Add and adjust shadow effects for better visibility.

Text Stroke: Outline text with adjustable color and width.

For more details on Text Shadow and Text Stroke, you can refer to our aBlocks Text Shadow and Text Stroke documentation.

Customize the Text Shadow and text Stroke options

Search Button

This section includes two main options: Content and Style

Content

In this section, you will find the Button Type option, which allows you to choose how the search button appears. There are three available options:

  • Text –Customize button text.
  • Icon – Adjust icon size.
  • Both – Use text and icon with full customization.
Customize the Search Button sections

Style

In this section, you will find four customization options to style the search button:

  • Color
  • Typography
  • Text Shadow
  • Text Stroke

Let’s explore each option in detail!

Color: Customize button text color to match your design.

Customize the Color option

Typography: Fully adjustable settings. See aBlocks Typography Setting Documentation.

Customize the Typography option

Text Shadow: Add and adjust shadow effects for better visibility. 

Text Stroke: Outline text with adjustable color and width.

For more details on Text Shadow and Text Stroke, you can refer to our aBlocks Text Shadow and Text Stroke documentation.

Customize the Text Shadow and text Stroke options

Search Result Container 

The Search Result Container section offers several customization options to help you fine-tune the appearance and behavior of the search results.

Position: Choose Absolute (relative placement) or Fixed (stays on screen).

List Width: Adjust the search result width to fit your layout.


Gap: Control spacing between search results for better readability.


Padding: Customize inner spacing (Top, Right, Bottom, Left) for a structured look.

Customize the Search Result Container sections

Border Customization

  • Normal – Adjust default border settings:
    • Border Style – Choose from Default, Solid, Dotted, Dashed, etc.
    • Width – Set thickness for each side (Top, Right, Bottom, Left).
  • Hover – Applies the same settings when hovered over.
Customize the Border options

Border Color: Set a color to match or contrast with your theme.

Border Radius: Adjust corner roundness (Top Left, Top Right, Bottom Left, Bottom Right) for a smooth or sharp look.

Customize the Border options

Search Result Item

In the Search Result Item section, you will find four main subsections:

  1. Search Result Item Layout: Adjust structure and spacing.
  2. Item Width: Set a fixed or responsive width for balance.
  3. Gap: Control spacing between items for a refined layout.
  4. Padding: Adjust the spacing inside the input fields (top, right, bottom, left).
Customize the Search Result Item sections

Search Result Item Border Customization

  • Normal Mode – Always visible border settings.
  • Hover Mode – Changes applied when hovered over.

Customization Options:

  • Border Style – Choose from Solid, Dashed, Dotted, Double, or Groove.
  • Border Width – Adjust thickness for each side (Top, Right, Bottom, Left).
  • Border Color – Match your theme or highlight search results.
  • Border Radius – Customize corner roundness for a smooth or sharp look.
Search Result Item Border Customization

Search Item Title Customization

  • Typography – Adjust font, size, weight, transform, style, and spacing for better readability. See aBlocks Typography Setting Documentation.
  • Color – Customize text color to match your theme or enhance visibility.
Search Item Title Customization

Item Result Thumbnail Customization

  • Width – Adjust thumbnail size to fit your design.
  • Height – Set proportions for visual balance.
Item Result Thumbnail Customization

Conclusion

The aBlocks Search Block offers a fully customizable search feature to enhance navigation and user experience. With flexible layout and styling options, it seamlessly integrates into your site. For assistance, contact our support team anytime!