I am basically trying to hide a DIV on the homepage but have it show elsewhere (Controled by the URL).
DIV name “left_col”
Trying to do this using just php.
How would this be done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Supposing your homepage url was
index.php, something like this should work and be very easy:There are many other ways to do this, depending on the rest of your architecture, if you use templating engines, or many other factors. If you post more context for your question and your environment, I could be more specific.
EDIT To do this with CSS instead of fully suppressing output, this method specifies a class for each showing and hiding and applies it to the div.