instead of going to a collection, going to a page - CRAFT THEME

Hey Shopify community,

Hope you’re doing wonderful!

I need your help!

I would love to know if it’s possible to replace the down button “herbal scents” (see screenshot) with a page instead of a collection. I would love to have that clickable button redirecting my clients to this link https://kairobicare.com/collections, instead of a new collection of all of my products.

Before I tried to create a new collection called “shop now” and doesn’t work for me because it adds an extra collection to this link https://kairobicare.com/collections instead of redirecting people to the link itself - which is what I am trying to figure out.

Is it possible? Thank you :folded_hands:t2:

Hi @Kairobi ,

You can do that edit card-collection.liquid file in Sale channels > Online store > Theme > Edit code

Replace original code with this one

{% comment %}
  Renders a collection card

  Accepts:
  - card_collection: {Object} Collection Liquid object
  - media_aspect_ratio: {String} Size of the product image card. Values are "square" and "portrait". Default is "square" (optional)
  - columns: {Number}
  - extend_height: {Boolean} Card height extends to available container space. Default: false (optional)
  - wrapper_class: {String} Wrapper class for card (optional)

  Usage:
  {% render 'card-collection' %}
{% endcomment %}

{%- liquid
  assign ratio = 1
  if card_collection.featured_image and media_aspect_ratio == 'portrait'
    assign ratio = 0.8
  elsif card_collection.featured_image and media_aspect_ratio == 'adapt'
    assign ratio = card_collection.featured_image.aspect_ratio
  endif
  if ratio == 0 or ratio == null
    assign ratio = 1
  endif
  assign card_color_scheme = settings.card_color_scheme
  assign card_style = settings.card_style
  if wrapper_class == null or wrapper_class == 'none'
    assign card_color_scheme = settings.collection_card_color_scheme
    assign card_style = settings.collection_card_style
  endif
-%}

  

    

      {%- if card_collection.featured_image -%}
        

          

            
          

        

      {%- endif -%}
      
        

          ### 
            
              {%- if card_collection.title != blank -%}
                {{- card_collection.title | escape -}}
              {%- else -%}
                {{ 'onboarding.collection_title' | t }}
              {%- endif -%}
              {%- if card_collection.description == blank -%}
                {% render 'icon-arrow' %}
              {%- endif %}
            
          
          {%- if card_collection.description != blank -%}
            

              {{- card_collection.description | strip_html | truncatewords: 12 -}}
               {% render 'icon-arrow' %}
            

          {%- endif -%}
        

      

    

    {% if card_style == 'card' or card_collection.featured_image %}
      
        

          ### 
            
              {%- if card_collection.title != blank -%}
                {{- card_collection.title | escape -}}
              {%- else -%}
                {{ 'onboarding.collection_title' | t }}
              {%- endif -%}
              {%- if card_collection.featured_image or card_collection.description == blank -%}
                {% render 'icon-arrow' %}
              {%- endif %}
            
          
          {%- if card_collection.featured_image == null and card_collection.description != blank -%}
            

              {{- card_collection.description | strip_html | truncatewords: 12 -}}
               {% render 'icon-arrow' %}
            

          {%- endif -%}
        

      

    {% endif %}
  

Hi @Kairobi

  1. go to the online store

  2. customize then scroll down in multicolumn and link change

Hey @Dan-From-Ryviu , thank you for your help!

After doing that what happens? Nothing seem to change - I still can’t put the link to collections on the button :confused:

Any suggestions? Thank you!

Hey @websensepro , thank you for your help!

I can’t do what you suggest since it is a Collection and not a Multicolumn.

Any suggestion for a Collage? Thanks :slightly_smiling_face:

Hi @Kairobi , you did not need to put the link because it was automatically added. Please click on that collection to check, it will link to https://kairobicare.com/collections

Ohh yess! I now see, thank you so much!! Extremely helpful :folded_hands:t2: