Skip to content

Content Configuration

The Content section allows you to customize frontend behavior, promotional banners, and control advanced features like speculation rules and custom scripts. These settings help optimize user experience and tailor the storefront according to specific business needs.

Steps to Configure Content Settings

To update the Content configuration in Bagisto:

  1. Log in to the Admin Panel.
  2. Navigate to Configure → Content.
  3. You will find the following options to configure:

Header Offer Title

Display a promotional banner on the storefront header.

  • Offer Title
    Example: Get UPTO 40% OFF on your 1st order

  • Redirection Title
    Example: SHOP NOW

  • Redirection Link
    Enter a valid URL (e.g., /products/sale)

Header Offer Title

Speculation Rules

These rules improve perceived performance by prefetching or prerendering pages intelligently.

From Bagisto v2.4.9, speculation rules are turned off by default. They have the browser fetch pages nobody has opened yet, which costs bandwidth and shows up as traffic on pages that were never visited, so a store now opts in instead of opting out.

Speculation Rules Disabled By Default
  • Enable Speculation Rules
    Toggle to enable the overall speculation logic. Disabled by default.

  • Enable Prerender Speculation Rules
    Enables prerendering based on user behavior predictions. Disabled by default.

The three fields below appear only once Enable Prerender Speculation Rules is turned on.

  • Ignore Prerender URLs
    Exclude specific routes from prerendering using pipe | as a separator.
    Default: /customer/account/*|/checkout/*

  • Ignore Prerender URL Parameters
    Exclude certain URL parameters from prerender logic.
    Example: ref|token

  • Prerender Eagerness Level
    Choose the intensity of prerendering:

    • eager: Max prerendering (more resources)
    • moderate: Default balance
    • conservative: Minimal prerendering
  • Enable Prefetch Speculation Rules
    Enables link prefetching to accelerate navigation. Disabled by default.

The three fields below appear only once Enable Prefetch Speculation Rules is turned on.

  • Ignore Prefetch URLs
    Exclude specific routes from prefetching using pipe | as a separator.
    Default: /customer/account/*|/checkout/*

  • Ignore Prefetch URL Parameters
    Exclude certain URL parameters from prefetch logic.

  • Prefetch Eagerness Level
    Choose the intensity of prefetching, using the same eager, moderate and conservative levels as prerendering.

The image below shows the section with the toggles enabled and their dependent fields revealed.

Speculation Rules

Coyright Content

Setting up the copyright information in your website's footer is a key step in safeguarding your intellectual property and showing clear ownership of your online content.

By having a well-formatted copyright notice, you let visitors know that the content, design, images, and other materials on your site are legally protected.

This not only helps prevent unauthorized use or copying but also shows professionalism and builds trust with your audience.

By including your brand name, the current year, and a brief rights statement in the footer, you ensure that your brand is visible on every page of your website.

Steps to Add Coyright Content

To add Coyright Content, go to the Admin panel: Configure >> Content.

You will see the textbox to add the Copyright Content as shown in the image below.

Coyright Content

At last click on Save Configuration button.

After this, you can go to the storefront footer of your Bagisto website and check that your copyright content has been successfully added.

Coyright Content

Custom Scripts

Add your own scripts to enhance or integrate custom features.

  • Custom CSS
    Add global CSS to style your storefront.

  • Custom JavaScript
    Insert scripts for chat widgets, analytics, or any custom interaction.

Custom Scripts

Released under the MIT License.