how to block a section from appearing on the home page

Hello,

on our home page we have a section called, “Browse By”, this section is causing some query issues and until we resolve we want to prevent this section from appearing on the home page, I have zero knowledge of php, can someone guide me as to how i do it, i do have access to cpanel and the files of the website and i see a whole bunch of files there including .htaccess, index.php, index etc…

thanks so much

Hello,

The best thing to do is find out what lines of code in your script file makes up that section and comment those lines of code out. You can do this by simply putting // in front of all of the lines of code that you want commented. Alternately, you can use # which works like //. If it is a huge section of code that makes up that section, you can use /* at the first line of code and use */ at the end of the last line of code you want commented out. Here are some examples:

The use of //:
[php]<?php
// Commented lines
// Commented lines
// Commented lines
?>[/php]

The use of #:
[php]<?php

Commented lines

Commented lines

Commented lines

?>[/php]

The use of /* … /
[php]<?php
/
Commented lines
Commented lines
Commented lines
Commented lines
Commented lines
Commented lines */
?>[/php]

Let me know if I can be of more help.

Cheers!

Also, when a site is started by a user, it uses the “index.php” file as the starting page.
You should start by looking at that code. In PHP files, quite often there are “included” files.
These would be clearing indicated with “include” filenames. You would have to look into all of
the the included files.

Since you have a section called “Browse by”, most likely it would have this text in it. You would
have to locate that section and then use the comment-out that OpzMaster mentioned. We could
help you, but, you would have to post the code so we can see it. Good luck.

Sponsor our Newsletter | Privacy Policy | Terms of Service