Hack Forums
[Wordpress] Changing color in relation to IP address - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141)
+---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50)
+---- Thread: [Wordpress] Changing color in relation to IP address (/showthread.php?tid=5662770)



Changing color in relation to IP address - zouz - Jul 5, 2017

Hello everyone ! I'm new here, I've come in peace to be enlightened. I'd like to apologize in advance, English is not my first language...

I am creating a website with WordPress. I'd like to know if it is possible to change the background color of the homepage, in relation to your IP address.

To be clear : I'm on the homepage : the background is blue. Then, I'm reading an article, the background is still blue. Then, I'm going to the homepage again and it's red... Finally, I'm reading another article, background is red etc.

Do you understand what I'm asking ?

Please note that I have a super-light coding-knowledge (like, on a scale from 1 to 10, I'm at 3). But is there something like "if same IP address on homepage, color: #FFFFF ; #00000 ; #0004FF ; #FF0000" etc ?

Thank you in advance for your answers !
Best Regards,
Zoe


* - ankitagrawal - Jul 7, 2017

Yes,

you can change background color according to IP address


* - BanditDev - Jul 7, 2017

(Jul 7, 2017 06:03 AM)ankitagrawal Wrote:  Yes,

you can change background color according to IP address

Instead of just saying yes there is, why don't you share how he is able to do it?

OP you can take a look at this post on stackoverflow, hopefully it helps you out -> Here