diff --git a/handlers/api.go b/handlers/api.go index ce958df7f7..db7639f6c5 100644 --- a/handlers/api.go +++ b/handlers/api.go @@ -1205,7 +1205,7 @@ func GetUserPremiumByPackage(pkg string) PremiumUser { MaxNodes: 1, WidgetSupport: false, NotificationThresholds: false, - NoAds: false, + NoAds: true, } if pkg == "" || pkg == "standard" { diff --git a/handlers/pageData.go b/handlers/pageData.go index e0fb20b5a5..d5083c1fbe 100644 --- a/handlers/pageData.go +++ b/handlers/pageData.go @@ -65,7 +65,7 @@ func InitPageData(w http.ResponseWriter, r *http.Request, active, path, title st ClientsUpdated: ethclients.ClientsUpdated(), Phase0: utils.Config.Chain.Phase0, Lang: "en-US", - NoAds: user.Authenticated && user.Subscription != "", + NoAds: true, DefaultCurrency: utils.Config.Frontend.Eth1Currency, DefaultCurrencyName: utils.Config.Frontend.Eth1CurrencyName, Eth1Label: utils.Config.Frontend.Eth1Label, diff --git a/templates/index/index.html b/templates/index/index.html index 1a79cab993..802f1fe384 100644 --- a/templates/index/index.html +++ b/templates/index/index.html @@ -364,7 +364,7 @@ {{if and (and (not .ShowSyncingMessage) .Genesis) (not .GenesisPeriod)}} {{ template "participationWarning" .}} {{end}} - {{ template "hero" . }} + {{if not $.NoAds}} {{ template "hero" . }} {{end}} {{end}} {{if not .NoAds}} {{template "banner"}} {{end}} {{with .Data}} diff --git a/templates/layout.html b/templates/layout.html index 11cf784131..a70559afc7 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -635,7 +635,6 @@ - {{template "css" .Data}}