Title: Basic php text removal question
Last modified: August 19, 2016

---

# Basic php text removal question

 *  [andyd69](https://wordpress.org/support/users/andyd69/)
 * (@andyd69)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/basic-php-text-removal-question/)
 * Hi there
 * I have a basic requirement (I am not a coder/developer, but a designer).
    I need
   to remove some elements from a homepage ([http://www.silvercrossblog.com/](http://www.silvercrossblog.com/))
   which have ceased to work since a 2.8 update. Can anyone help?
 * I need to remove the following from the homepage only: In simple speak can someone
   tell me which file to edit (I assume index.php) but can’t see what to remove.
 *  * recent entries
    * recent comments * archives
 *  * Hello world!
    * Contact Us * Videos * Images * About us * Homepage
 *  * June 2009
    * February 2009
 * Thanks in advance, Andy

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [Driftless](https://wordpress.org/support/users/driftless1/)
 * (@driftless1)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/basic-php-text-removal-question/#post-1133273)
 * Looks like you want to cut them out of your sidebar.php file. Though I’m not 
   familiar with this theme.
 * Yo sure they are not widgets gone bad?
 *  [mjjinvincible](https://wordpress.org/support/users/mjjinvincible/)
 * (@mjjinvincible)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/basic-php-text-removal-question/#post-1133275)
 * You should delete the code contained in the DIV with an id of “top-container”(`
   <div id="top-container">`). Anyways, you should post the code of your **index.
   php** to make sure what’s the code generating that content.
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/basic-php-text-removal-question/#post-1133284)
 * These should **not** be categories:
 *  * About Us
    * Contact Us * Homepage * Image Library * Videos
 * You have these as both pages (top menu) and categories (sidebar), which is very
   confusing.
 * Also, your Google Analytics code is misplaced and needs to be moved to just before
   the closing `</body>` tag.
 *  Thread Starter [andyd69](https://wordpress.org/support/users/andyd69/)
 * (@andyd69)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/basic-php-text-removal-question/#post-1133285)
 * Thanks guys. I’ve looked a bit more at it and found the top-container code in
   the Widget-Tab.php (I think). But when I delete the code for the offending text,
   the design goes out of cink.
 * I did think maybe the 2.8 upgrade was affecting the widgets, but I can’t get 
   support from anyone involved with this theme! That’s bad!
 * Here’s the index.php
 * <?php get_header() ?>
    <div id=”top-container”> <?php include(TEMPLATEPATH.’/
   slide.php’); ?> <div class=”clear”></div> <?php include(TEMPLATEPATH.’/includes/
   glide.php’); ?> <?php include(TEMPLATEPATH.’/includes/widget-tab.php’); ?> <div
   class=”clear”></div> </div><!– /top-container –>
 * <div id=”container”>
 * <div id=”content”>
 * <div class=”post single” id=”post-1″><div class=”post-top”>
    <center><h3 class
   =”title”>Welcome</h3></center>
 *  <div class=”entry”>
    <p>Welcome to the Silver Cross blog. Here’s where we share
   our news and little stories with you, and give you a sneaky peek into the world
   of Silver Cross.</p>
 * <p>This blog is for our customers, so please, let us know what you like and don’t–
   we want to hear your feedback and make it the best blog for you!</p>
    </div> 
   </div> <div class=”post-bottom”></div> </div>
 * <?php get_sidebar(); get_footer(); ?>
 * If anyone can help me fix this, it’d be much appreciated. Maybe I can reciprocate
   with some graphics assistance.
 * cheers, Andy
 *  [mjjinvincible](https://wordpress.org/support/users/mjjinvincible/)
 * (@mjjinvincible)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/basic-php-text-removal-question/#post-1133287)
 * Try commenting out these lines:
 *     ```
       <div id="top-container">
       		<?php include(TEMPLATEPATH.'/includes/slide.php'); ?>
       		<div class="clear"></div>
       		<?php include(TEMPLATEPATH.'/includes/glide.php'); ?>
       		<?php include(TEMPLATEPATH.'/includes/widget-tab.php'); ?>
       		<div class="clear"></div>
       </div><!-- /top-container -->
       ```
   
 * **EDIT:** I installed the theme locally on my PC and by deleting those lines 
   the theme looks good. So try deleting those lines and see what you get.
 *  Thread Starter [andyd69](https://wordpress.org/support/users/andyd69/)
 * (@andyd69)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/basic-php-text-removal-question/#post-1133289)
 * mjjinvincible – thanks very much, that seems to have done the trick!
 * My only slight concern is that this theme has an image slider on the hoempage.
   Are any of the removed lines going to stop this working?
 * big thanks, Andy
 *  [mjjinvincible](https://wordpress.org/support/users/mjjinvincible/)
 * (@mjjinvincible)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/basic-php-text-removal-question/#post-1133290)
 * Hi Andy.
 * The file which is causing all the trouble is actually **widget-tab.php**. It’s
   the file which shows recent posts, comments and categories. I don’t think that
   one is needed for the slider, but I’m not 100% sure because I can’t get the slider
   to work. Anyway, the slider should probably work with **slide.php** and **glide.
   php**:
 *     ```
       <div id="top-container">
       		<?php include(TEMPLATEPATH.'/includes/slide.php'); ?>
       		<div class="clear"></div>
       		<?php include(TEMPLATEPATH.'/includes/glide.php'); ?>
       		<?php // include(TEMPLATEPATH.'/includes/widget-tab.php'); ?>
       		<div class="clear"></div>
       </div><!-- /top-container -->
       ```
   
 *  Thread Starter [andyd69](https://wordpress.org/support/users/andyd69/)
 * (@andyd69)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/basic-php-text-removal-question/#post-1133458)
 * Hey, thanks again. I had found the widget-tab.php and edited myself b4 I followed
   your first advice. amending widget file produced layout errors, I guess affected
   by the stylesheet?
 * Thanks again, for the time being I think I’m OK.
 * Are you updated to WP2.8?
 * It has caused a fault with my own site, previously bulletproof!
    [http://addcreative.co.uk](http://addcreative.co.uk)
 * The background has gone and the slider doesn’t work. I’m wondering if the TarouMag
   theme is not compatible with 2.8.?
 * Whaddaya think?
 * Andy
 *  Thread Starter [andyd69](https://wordpress.org/support/users/andyd69/)
 * (@andyd69)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/basic-php-text-removal-question/#post-1133460)
 * Hey, thanks again. I had found the widget-tab.php and edited myself b4 I followed
   your first advice. amending widget file produced layout errors, I guess affected
   by the stylesheet?
 * Thanks again, for the time being I think I’m OK.
 * Are you updated to WP2.8?
 * It has caused a fault with my own site, previously bulletproof!
    [http://addcreative.co.uk](http://addcreative.co.uk)
 * The background has gone and the slider doesn’t work. I’m wondering if the TarouMag
   theme is not compatible with 2.8.?
 * Whaddaya think?
 * Andy
 *  [mjjinvincible](https://wordpress.org/support/users/mjjinvincible/)
 * (@mjjinvincible)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/basic-php-text-removal-question/#post-1133565)
 * Yes, I was running it on 2.8.
    I would say it’s some kind of compatibility issue
   because I could not change the options that come with the theme in the backend
   of WordPress.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Basic php text removal question’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 4 participants
 * Last reply from: [mjjinvincible](https://wordpress.org/support/users/mjjinvincible/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/basic-php-text-removal-question/#post-1133565)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
