• 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 (https://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)
  • 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?

    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.

    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

    (@andyd69)

    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

    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

    (@andyd69)

    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

    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

    (@andyd69)

    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!
    https://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

    (@andyd69)

    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!
    https://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

    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.