Go Back   Web Server Hosting Forum by BODHost > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-09, 18:36
BOD Member
 
Join Date: Oct 2009
Posts: 21
Default A little Wordpress help?

I am modifying a theme to suit my needs and I have basically figured out almost everything I need to fiddle with, except for one thing. The theme already comes with a meta, archives and calendar section but I cannot seem to find the code to remove the default wordpress meta section. I have looked over that sidebar php file a gazillion times but it only shows the theme's meta which is on a tab.

Can I get some advice please?
Reply With Quote
  #2 (permalink)  
Old 11-09-09, 13:31
BOD Member
 
Join Date: Jan 2009
Posts: 195
Thumbs up

I would suggest you to open of the sidebar.php of the theme and edit the theme to remove the meta section manually. You can use one of the text only editors given in the below link to help you out.

codex . wordpress . org/Glossary#Text_editor

Hope this helps
Reply With Quote
  #3 (permalink)  
Old 11-10-09, 05:03
BOD Member
 
Join Date: Oct 2009
Posts: 47
Default

Joseph is absolutely correct. You need to edit the sidebar.php file manually and remove the meta sections. Just make sure you edit the sidebar which is necessary. For some themes there are two sidebars given (left and right). If you are still not getting just let us know, which theme you are using? 'll definitely help you out.
Reply With Quote
  #4 (permalink)  
Old 11-10-09, 15:18
BOD Member
 
Join Date: Oct 2009
Posts: 50
Default

There are sometimes those themes that are just a true pain, but I have noticed of any forum, everyone is always willing to help out with blog stuff. I have had my fair share of issues between SMF/Tiny Portal and my blog (I attempted to match with SMF and TP). :D
Reply With Quote
  #5 (permalink)  
Old 11-12-09, 18:15
BOD Member
 
Join Date: Oct 2009
Posts: 100
Default

I have used WordPress for years and learned it inside out. Although I'm not a PHP expert I can help you with many stuff related with WP. What was the theme in question? Maybe I can download it and tell you where exactly do you need to do the edits.
Reply With Quote
  #6 (permalink)  
Old 11-12-09, 18:37
BOD Member
 
Join Date: Oct 2009
Posts: 21
Default

The thing is that I modified the sidebar.php and deleted the script pertaining to what I wanted removed from the theme as well, which disappeared just fine, but now there is no code to remove the defaults. Here's a link to the original theme: WordPress Business, Website Templates Number: focusbox - DreamTemplate

Just click on live preview and you will be able to see it. Now, if you look on the sidebar there is a section up top which covers calendar, meta and archives. Then if you look down you will see that there is another meta, calendar and archives section. I managed to delete the calendar bit but cannot remove the meta or the archives.
Reply With Quote
  #7 (permalink)  
Old 11-13-09, 10:23
carl owen's Avatar
Super Moderator
 
Join Date: Nov 2008
Posts: 1,059
Default

Well, if you have already tried to edit the sidebar.php of the theme but could not get the meta or the archives removed from it, I would suggest you to check the "Widgets" section. It might be possible that "Widgets" are enabled in the right sidebar. You need to remove the meta and archives Widgets from the right sidebar. Once you remove it, you will be able to disable the meta and archives Widgets from the right Sidebar.

Hope this will be helpful

Best of luck!!
Reply With Quote
  #8 (permalink)  
Old 11-13-09, 13:00
BOD Member
 
Join Date: Oct 2009
Posts: 50
Default

Quote:
Originally Posted by carl owen View Post
Once you remove it, you will be able to disable the meta and archives Widgets from the right Sidebar.
You know I had a similar theme issue a while back and I never thought to do that. I ended up fighting with the thing for the longest time and then ended up so frustrated I gave up and swapped to another one. And, now, yes on the 13th, I feel like a noob. :(
Reply With Quote
  #9 (permalink)  
Old 11-14-09, 04:39
BOD Member
 
Join Date: Mar 2009
Posts: 131
Default

Hi, good discussion going on here. I would like to bring to your notice that, in the given theme it seems that in the sidebar where you see Comments,Articles,Meta and Calendar alongside is due to the widget.If you do not want this then you will have to simply deactivate it.

But,if you want to remove the one's that are below the widget,then you simply need to add "//" before the function of meta.

Hope this helps.
Reply With Quote
  #10 (permalink)  
Old 11-14-09, 05:04
BOD Member
 
Join Date: Oct 2009
Posts: 21
Default



Thanks everyone for the input. I would like to keep the widget with the tabs but want to remove the duplicates below. I am going to post the code from the original and how I modified it so maybe someone can tell me what I am missing. Please be gentle as I am a complete newbie at this.

Original:

Code:
<div class="SR">
  <!-- Start SideBar2 -->
  <!-- Start Search -->
  <div class="Search">
    <h2>Search</h2>
    <form action="/index.php" method="post">
      <input name="s" type="text" class="keyword" value="Search" />
      <input name="submit" type="submit" class="search" title="Search" value="" alt="Search" />
    </form>
    <div class="clr"></div>
  </div>
  <!-- End Search -->
  <!-- Start Adsense -->
  <div class="banner">
    <h2>
      <?php _e('Sponsors'); ?>
    </h2>
    <ul>
      <li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/banner.gif" width="125" height="125" alt="banner" border="0" /></a></li>
      <li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/banner.gif" width="125" height="125" alt="banner" border="0" /></a></li>
    </ul>
    <div class="clr"></div>
  </div>
  <!-- End Adsense -->
  <!-- Start Recent Comments/Articles -->
  <div class="Recent">
    <h2 id="tab20" onclick="ShowTab(2,0)" class="active" >
      <?php _e('Comments'); ?>
    </h2>
    <h2 id="tab21" onclick="ShowTab(2,1)">
      <?php _e('Articles'); ?>
    </h2>
    <h2 id="tab22" onclick="ShowTab(2,2)" >
      <?php _e('Meta'); ?>
    </h2>
    <h2 id="tab23" onclick="ShowTab(2,3)">
      <?php _e('Calendar'); ?>
    </h2>
    <div class="clr"></div>
    <!-- Start Comments -->
    <div class="TabContent" id="div20" style="display:block;">
      <ul>
        <?php mdv_recent_comments(); ?>
      </ul>
    </div>
    <!-- End Comments -->
    <!-- Recent Articles -->
    <div class="TabContent" id="div21" style="display:none;">
      <ul>
        <?php mdv_recent_posts(); ?>
      </ul>
    </div>
    <!-- Recent Articles -->
    <!-- Start Meta -->
    <div class="TabContent" id="div22" style="display:none;">
      <ul>
        <?php wp_register(); ?>
        <li>
          <?php wp_loginout(); ?>
        </li>
        <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
        <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
        <?php wp_meta(); ?>
      </ul>
    </div>
    <!-- End Meta -->
    <!-- Start Calendar -->
    <div class="Calendar" id="div23" style="display:none;">
      <ul>
        <li>
          <?php get_calendar(); ?>
        </li>
      </ul>
    </div>
    <!-- Start Calendar -->
    <div class="clr"></div>
  </div>
  <!-- End Recent Comments/Articles -->
  <div class="SRN">
    <!-- Start Categories -->
    <div class="categories navig">
      <h2>
        <?php _e('Categories'); ?>
      </h2>
      <ul>
        <?php wp_list_cats('show_count=0'); ?>
      </ul>
    </div>
    <!-- End Categories -->
    <!-- Start Archives -->
    <div class="archives navig">
      <h2>
        <?php _e('Archives'); ?>
      </h2>
      <ul>
        <?php wp_get_archives('type=monthly'); ?>
      </ul>
    </div>
    <!-- End Archives -->
    <!-- Start Meta -->
    <div class="meta navig">
      <h2>
        <?php _e('Meta'); ?>
      </h2>
      <ul>
        <?php wp_register(); ?>
        <li>
          <?php wp_loginout(); ?>
        </li>
        <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
        <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
        <?php wp_meta(); ?>
      </ul>
    </div>
    <!-- End Meta -->
  </div>
  <?php /* Widgetized sidebar, if you have the plugin installed. */
	  if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
  <!-- Start Flickr Photostream -->
  <?php if (function_exists('get_flickrRSS')) { ?>
  <div class="widget widget_flickr">
    <h2>
      <?php _e('Flickr Photo'); ?>
    </h2>
    <ul>
      <?php get_flickrRSS(8, "community", "london,people", "square", "<li>", "</li>", "34427469792@N01"); ?>
    </ul>
    <div class="clr"></div>
  </div>
  <?php } ?>
  <!-- End Flickr Photostream -->
  <?php endif; ?>
  <!-- End SideBar2 -->
</div>

My changes:

Code:
<div class="SR">
  <!-- Start SideBar2 -->
  <!-- Start Search -->
  <div class="Search">
    <h2>Search</h2>
    <form action="/index.php" method="post">
      <input name="s" type="text" class="keyword" value="Search" />
      <input name="submit" type="submit" class="search" title="Search" value="" alt="Search" />
    </form>
    <div class="clr"></div>
  </div>
  <!-- End Search -->
    <!-- Start Recent Comments/Articles -->
  <div class="Recent">
    <h2 id="tab20" onclick="ShowTab(2,0)" class="active" >
      <?php _e('Comments'); ?>
    </h2>
    <h2 id="tab21" onclick="ShowTab(2,1)">
      <?php _e('Articles'); ?>
    </h2>
    <h2 id="tab22" onclick="ShowTab(2,2)" >
      <?php _e('Meta'); ?>
    </h2>
    <h2 id="tab23" onclick="ShowTab(2,3)">
      <?php _e('Calendar'); ?>
    </h2>
    <div class="clr"></div>
    <!-- Start Comments -->
    <div class="TabContent" id="div20" style="display:block;">
      <ul>
        <?php mdv_recent_comments(); ?>
      </ul>
    </div>
    <!-- End Comments -->
    <!-- Recent Articles -->
    <div class="TabContent" id="div21" style="display:none;">
      <ul>
        <?php mdv_recent_posts(); ?>
      </ul>
    </div>
    <!-- Recent Articles -->
    <!-- Start Meta -->
    <div class="TabContent" id="div22" style="display:none;">
      <ul>
        <?php wp_register(); ?>
        <li>
          <?php wp_loginout(); ?>
        </li>
        <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
        <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
        <?php wp_meta(); ?>
      </ul>
    </div>
    <!-- End Meta -->
    <!-- Start Calendar -->
    <div class="Calendar" id="div23" style="display:none;">
      <ul>
        <li>
          <?php get_calendar(); ?>
        </li>
      </ul>
    </div>
    <!-- Start Calendar -->
    <div class="clr"></div>
  </div>
  <!-- End Recent Comments/Articles -->
  <div class="SRN">
    <!-- Start Categories -->
    <div class="categories navig">
      <h2>
        <?php _e('Categories'); ?>
      </h2>
      <ul>
        <?php wp_list_cats('show_count=0'); ?>
      </ul>
    </div>
    <!-- End Categories -->
    <!-- Start Archives -->
    <div class="archives navig">
      <h2>
        <?php _e('Archives'); ?>
      </h2>
      <ul>
        <?php wp_get_archives('type=monthly'); ?>
      </ul>
    </div>
    <!-- End Archives -->
    <!-- Start Meta -->
    <div class="meta navig">
      <h2>
        <?php _e('Meta'); ?>
      </h2>
      <ul>
        <?php wp_register(); ?>
        <li>
          <?php wp_loginout(); ?>
        </li>
        <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
        <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
        <?php wp_meta(); ?>
      </ul>
    </div>
    <!-- End Meta -->
  </div>
  <?php /* Widgetized sidebar, if you have the plugin installed. */
	  if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
  <!-- Start Flickr Photostream -->
  <?php if (function_exists('get_flickrRSS')) { ?>
  <div class="widget widget_flickr">
    <h2>
      <?php _e('Flickr Photo'); ?>
    </h2>
    <ul>
      <?php get_flickrRSS(8, "community", "london,people", "square", "<li>", "</li>", "34427469792@N01"); ?>
    </ul>
    <div class="clr"></div>
  </div>
  <?php } ?>
  <!-- End Flickr Photostream -->
  <?php endif; ?>
  <!-- End SideBar2 -->
</div>
Reply With Quote
  #11 (permalink)  
Old 11-14-09, 05:27
BOD Member
 
Join Date: Mar 2009
Posts: 131
Default

Code:
<!-- Start Meta -->
    <div class="TabContent" id="div22" style="display:none;">
      <ul>
        <?php wp_register(); ?>
        <li>
          <?php wp_loginout(); ?>
        </li>
        <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
        <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
        <?php wp_meta(); ?>
      </ul>
    </div>
    <!-- End Meta -->
Hi there,you will either have to remove the above code or add an html function "//" to the code. Similar steps can be followed to remove the other options as well.

Please revert for any further help.
Reply With Quote
  #12 (permalink)  
Old 11-17-09, 09:27
BOD Member
 
Join Date: Oct 2009
Posts: 49
Default

Thanks for sharing the code everyone! I'm new to wordpress as well and have been having some similar issues. This is very helpful to me and gives me some ideas to play with.
Reply With Quote
  #13 (permalink)  
Old 11-19-09, 09:56
BOD Member
 
Join Date: Oct 2009
Posts: 21
Default

Thank you so much for helping out. I deleted the bit you pointed out but that just stopped the widgetized tab menu from working. However I scrolled down and removed the following bit
Code:
   <!-- Start Meta -->
    <div class="meta navig">
      <h2>
        <?php _e('Meta'); ?>
      </h2>
      <ul>
        <?php wp_register(); ?>
        <li>
          <?php wp_loginout(); ?>
        </li>
        <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
        <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
        <?php wp_meta(); ?>
      </ul>
    </div>
    <!-- End Meta -->
and it worked out great :D.

I do have another itty bitty question. In the header, I want to change the text but I am not sure whether I have to modify the graphics or if the text is an overlay. It's probably a stupid question but I would be grateful if you could have a look at the code and tell me.




Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<?php $theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
<title><?php echo wp_title("",false); ?>-
<?php bloginfo('name'); ?>
</title>
<?php } else { ?>
<title>
<?php bloginfo('name'); ?>
</title>
<?php } ?>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascript/tabs.js"></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
</head>
<body>
<div id="bgcontainer">
  <div class="bgRasize">
    <!-- START Header -->
    <div class="Header">
      <!-- Start Logo -->
      <div class="Logo">
        <div class="LogoText">
          <h1><a href="<?php echo get_option('home'); ?>">
            <?php bloginfo('name'); ?>
            </a></h1>
        </div>
        <p class="Desc">
          <?php bloginfo('description'); ?>
        </p>
      </div>
      <!-- End Logo -->
      <!-- Start Menu -->
      <div class="Menu">
        <ul>
          <li><a href="<?php echo get_option('home'); ?>">
            <?php _e('Home'); ?>
            </a></li>
          <li><a href="<?php echo get_option('home'); ?>?page_id=2">
            <?php _e('About Us'); ?>
            </a></li>
          <li><a href="<?php echo get_option('home'); ?>?m=2008">
            <?php _e('Archives'); ?>
            </a></li>
          <li><a href="<?php echo get_option('home'); ?>?page_id=38">
            <?php _e('Contact Us'); ?>
            </a></li>
        </ul>
      </div>
      <!-- END Menu -->
      <div class="Syn">
        <ul>
          <li>Subscribe to our <a href="<?php bloginfo('rss2_url'); ?>">RSS</a></li>
        </ul>
      </div>
      <div class="clr"></div>
      <div class="Simple_text">
        <p><img src="<?php bloginfo('template_url'); ?>/images/Simpletext.jpg" width="1024" height="186" alt="Header" /></p>
      </div>
      <div class="clr"></div>
    </div>
    <div class="clr"></div>
    <!-- END Header -->
Reply With Quote
  #14 (permalink)  
Old 11-28-09, 03:32
BOD Member
 
Join Date: Nov 2009
Posts: 50
Default

Quote:
Originally Posted by DanaB52 View Post
I am modifying a theme to suit my needs and I have basically figured out almost everything I need to fiddle with, except for one thing. The theme already comes with a meta, archives and calendar section but I cannot seem to find the code to remove the default wordpress meta section. I have looked over that sidebar php file a gazillion times but it only shows the theme's meta which is on a tab.
Can I get some advice please?
Well, I have ever encountered the problem. It seems that by default the layout come with those widgets, but they doesn't appear on the widget editor. Actually, once you install a widget using the widget editor, those default widgets will disappear automatically, if there is something like this in the sidebar php file:

Quote:
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar(1) ) : ?>
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 23:47.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.