フリーページか否かを判別するカラーミー用テンプレートコード

  • フリーページか否かを判別するカラーミー用テンプレートコード

コンテンツデータ:freepage_check.zip

カラーミーショップでフリーページかそうでないかを判別するためのif文を利用できます。

¥2,200

*Tax included.

*This item is a digital item which you download (75638 bytes)

I would like to be notified of restocking

Age verification

When it is restocked, we will notify you to the registered e-mail address.

Mail Address

Please allow the domains 「thebase.in」&「mihune-web.com」so that you can receive our e-mail

I would like to be notified of restocking

Notice of restocking has been accepted.

We've sent an e-mail to you.
If you cannot find the mail, please check your spam folder.
When receiving a notification, you may not be able to receive it due to reasons such as the mail server capacity being exceeded. Please confirm it.

Please allow the domains 「thebase.in」&「mihune-web.com」so that you can receive our e-mail

Report

ご利用方法

コードには「フリーページのとき」用と、「フリーページ以外のとき」用の両方のコードを2つ書いていますが、必要な方だけコピーしてご利用ください。


具体例1・フリーページのみに使用するCSS、JavaScriptコードをインラインで記述

フリーページのみに適用したいCSSなどがあるとき、共通HTMLテンプレートで「フリーページのとき」で条件分岐しインラインでstyleタグを使用することで、フリーページのときのみCSSが反映されます。


具体例2・フリーページをLPとして使う

フリーページをランディングページのように使用したい場合は、「フリーページ以外のとき」の条件でヘッダーやフッターを囲むことで、フリーページではメインコンテンツのみを表示させることができます。(フリーページ以外では通常のレイアウト表示)

infomationdownfolderhomemessage