How to write only for first main page?
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
Sorry, I do not understand your question. What will you do?
Bludit does not use code with square brackets.
Bludit does not use code with square brackets.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
You can do it with the following code:
Code: Select all
<?php
if ($_SERVER['QUERY_STRING'] == "" || $_SERVER['QUERY_STRING'] == "page=1") {
echo "Hello World!";
}
?>
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
thx its work! in category print too.Edi wrote: ↑Fri Nov 25, 2022 11:34 am You can do it with the following code:
Code: Select all
<?php if ($_SERVER['QUERY_STRING'] == "" || $_SERVER['QUERY_STRING'] == "page=1") { echo "Hello World!"; } ?>
My decision:
Code: Select all
<?php if ($_SERVER['REQUEST_URI']=="/" || $_SERVER['QUERY_STRING'] == "page=1"): ?>