Language: English

πŸ“ How to Set a Custom Position for the Currency Converter

The Custom Position feature allows you to place the Currency Converter exactly where you want it on your storefront.

Instead of using the default floating or header positions, you can attach the Currency Converter to a specific element within your Shopify theme using a CSS selector.

This gives you greater flexibility and helps the Currency Converter blend naturally into your store's design. 🎯


⚠️ Before You Begin

Before setting a custom position, make sure:

  • Hoppy Currency Converter is installed and configured
  • The App Embed is enabled
  • Onboarding has been completed
  • You know where you would like the Currency Converter to appear

πŸ’‘ Common locations include navigation bars, headers, sidebars, utility menus, and custom storefront sections.


βœ… Step 1: Open Display Settings

Open the Hoppy Currency Converter app from your Shopify Admin.

Then:

β†’ Go to Settings

β†’ Click Display

Locate either:

  • Desktop Position
  • Mobile Position

You can configure custom positioning separately for desktop and mobile devices.


βœ… Step 2: Select Custom Position

Under Position Style, you'll see the available placement options.

Available Position Styles

Floating

Displays the Currency Converter as a floating widget on the storefront.


Header

Places the Currency Converter inside the store header.


Custom Position

Places the Currency Converter inside a specific element selected by you.

Select:

β†’ Custom Position

Once selected, additional settings become available automatically.


βœ… Step 3: Enter the Target Element

Inside the Custom Element field, enter the CSS selector of the element where the Currency Converter should appear.

Supported Selector Types

Class Selector

Begins with a period (.)

Example

.header-actions


ID Selector

Begins with a hash (#)

Example

#currency-wrapper


Element Selector

Uses the HTML element name directly.

Example

header


πŸ” How to Find a Selector

If you're unsure which selector to use:

  1. Open your storefront.
  2. Right-click the area where you want the Currency Converter.
  3. Click Inspect.
  4. Locate the HTML element.
  5. Right-click on the element.
  6. Select Copy β†’ Copy selector.
  7. Paste the copied selector into the Custom Element field.

Example

#block-template--166120#######__banner_bckcpm-video_CLEttT > div.media-with-text__content.rounded.text-custom > div > a

⚠️ Avoid using temporary Shopify-generated IDs, as these may change after theme updates.

Using stable class names is recommended whenever possible.


βœ… Step 4: Choose Position Placement

After entering the selector, choose how the Currency Converter should be inserted relative to that element.

Available Placement Options


Before

Places the Currency Converter immediately before the selected element.

Example

If targeting a cart icon:

β†’ The Currency Converter appears to the left of the cart icon.


After

Places the Currency Converter immediately after the selected element.

Example

If targeting a logo:

β†’ The Currency Converter appears to the right of the logo.


Append

Places the Currency Converter inside the selected element, at the end.

Example

If targeting a navigation container:

β†’ The Currency Converter appears after all existing navigation items.

πŸ’‘ This is often the best starting option for most themes.


Prepend

Places the Currency Converter inside the selected element, at the beginning.

Example

If targeting a navigation container:

β†’ The Currency Converter appears before all existing navigation items.


βœ… Step 5: Save Your Changes

Once the selector and placement option have been configured:

β†’ Click Save

The Currency Converter will now attempt to render in the selected location.


βœ… Step 6: Verify the Placement

Visit your storefront and confirm that the Currency Converter appears in the desired location.

If it does not appear:

  • Verify the selector is correct
  • Confirm the element exists on the page
  • Try a different placement option
  • Refresh the page

πŸ’‘ A hard refresh is often helpful after making placement changes.


πŸ› οΈ Alternative Method: Manual Placement

If using a CSS selector isn't suitable for your theme, you can manually place the Currency Converter using its code snippet.

This method is useful when:

  • You want complete control over where the Currency Converter appears.
  • Your theme doesn't contain a suitable element to target with Custom Position.
  • You're comfortable making minor theme customizations.

Step 1: Copy the Currency Converter Code Snippet

Open the Hoppy Currency Converter app from your Shopify Admin.

Then:

β†’ Go to Advanced

Locate:

β†’ Currency Converter Box Placement

Copy the provided code snippet from our app or below:

<div class="futureblink-currency-box"></div>

This is the snippet you'll place wherever you want the Currency Converter to appear.


Step 2: Add the Snippet to Your Theme

Option A β€” Using a Custom Liquid Block

From the Shopify Theme Editor:

β†’ Navigate to the section where you'd like the Currency Converter to appear.

β†’ Click the βž• Add Block button.

β†’ Search for and add a Custom Liquid block.

β†’ Paste the Currency Converter Code Snippet into the Custom Liquid block.

β†’ Click Save.


Option B β€” Editing Theme Files

For advanced storefront customization, you can also add the same code snippet directly to your Shopify theme files.

Go to:

Online Store β†’ Themes

β†’ Click the β‹― menu beside Edit Theme

β†’ Select Edit code

Locate the appropriate .liquid file for the section where you'd like the Currency Converter to appear, then paste the Currency Converter Code Snippet in the desired location.

⚠️ Important:

This method is intended for merchants comfortable editing Shopify theme code. We recommend duplicating your theme before making changes, as incorrect modifications may affect your storefront layout or functionality.


Selector Must Exist on the Page

If the selected element only exists on certain pages, the Currency Converter will only appear on those pages.

Using global header or navigation selectors usually provides the best results.


Hidden Elements Hide the Converter

If the selected element is hidden by the theme on certain devices, the Currency Converter will also be hidden.

Always test both desktop and mobile layouts.


You Can Switch Back Anytime

If Custom Position is no longer needed:

β†’ Return to Display Settings

β†’ Change Position Style back to:

  • Floating
  • Header

No additional configuration is required.


πŸŽ‰ Final Result

Once configured successfully:

βœ… The Currency Converter appears exactly where you want it

βœ… Desktop and mobile layouts can use different placements

βœ… The widget blends naturally into your storefront design

βœ… Placement can be adjusted without editing theme files

βœ… Advanced merchants can manually place the converter using Custom Liquid or Theme files for complete control

Using Custom Position helps create a more seamless and professional storefront experience while keeping the Currency Converter easily accessible to shoppers. 🎯