Jump to content

Script to change website logo and landing page


Bob92404

Recommended Posts

I am a website developer and I have employed reading the $_SERVER['URI'] to determine what the logo of the website is and the landing page. I've done this for a site that sells numerous products. I'm know I'm not the first one to do this. That seems to be the easiest way I know of doing it. The problem is that I'm using a template that is encrypted that I can't access. If I can get the template designer to allow me to put a header in there I can solve the problem. But if I can't, what are some other ideas of a PHP script that can go into the style sheet and change these two graphic variables? That's where both of these are coded. I can use the PHP Echo command I believe and put it inline. But if I can't do this is .htaccess a possibility? I know that's off topic for this group but I'm just asking.

 

Thank you in advance and looking for some great suggestions.

Edited by Bob92404
Typos
Link to comment
Share on other sites

Why is your goal to alter the style sheet and not just php to alter the html that is displaying these items?

Or - your index page could do a quick decision for you and load a unique page based on that URI value which has the desired items in it.

Edited by ginerjm
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.