Jump to content

Targeting Homepage Only [Data... etc]

Featured Replies

Posted

I run the download module on my website and the "Downloads Index Page" is my homepage.

I know I am supposed to be able to target different pages/sections with rules like:

/* Hide title on home page */
[data-pageapp="downloads"][data-pagelocation="front"][data-pagemodule="downloads"][data-pagecontroller="browse"] .ipsPageHeader{display:none!important;}

However the issue is that those properties on my homepage are exactly the same as my category pages domain.com/category/1-cars/

So how am I meant to target my Homepage only with those properties?

Thanks

  • Author

Solved it myself

Quote

{{if ($_SERVER['REQUEST_URI'] == "/")}}
HTML CODE
{{endif}}

 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.