WordPress.org

Support

Support » Themes and Templates » Removing Sponsers and Pages tabs

Removing Sponsers and Pages tabs

  • Hello
    i am very very new to wordpress
    and am actually constructing my blog nowdays

    link right now : http://Sharingmonster.net/blog

    what i need ?
    ~ i need to remove the sponser and pages tabs on the right hand side.
    i would appricate any help

    ~Thanks in advance =)

Viewing 15 replies - 1 through 15 (of 17 total)
  • esmi

    @esmi

    Forum Moderator

    You will need to start editing your theme’s template files.

    yup i know that 🙂
    but the main problem that i can’t

    so i need some guidance =)

    Moderator James Huff

    @macmanx

    Support Team Rep.

    That all depends on which theme you’re using, etc. Generally, start by investigating your theme templates at Appearance/Editor in your admin panel. If you can’t find the code that you need to remove, refer to your blog and look for “roadmaps” (images, etc.) around the sponser links and page tabs and look for those.

    okai now i managed to remove the sponsers tab by removing all the php file and saving it onto my computer safely .

    P.s : i removed the sponser tab like you said from ” Appearance/editor

    now i want to remove the pages ” tab “
    http://i38.tinypic.com/67oz02.png
    Waiting for reply =) Thanks

    Moderator James Huff

    @macmanx

    Support Team Rep.

    Can’t tell from an image. No source code to work off of. Again, go through Appearance/Editor to find the code. Reference “roadmaps” if you have to.

    Sorry for my noobish but i can’t really locate the code

    but here’s the image for the list

    http://i33.tinypic.com/v46s93.png

    Tell me which one i should go to .. then i will post the in-side code.

    sorry again 🙁

    Moderator James Huff

    @macmanx

    Support Team Rep.

    Sidebar I guess.

    okai . there we go
    here’s the code for the sidebar

    <div class="right">
    <?php include (TEMPLATEPATH . '/tabs.php'); ?>	
    
    <?php include (TEMPLATEPATH . '/sponsors.php'); ?>	
    
    <div class="sidebar">
    	<ul>
    <?php if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar("Sidebar1") ) : ?>
    		<div class="sidebox">
    		<li>
    			<h3 class="sidetitl">Pages</h3>
    			<ul>
    			<?php wp_list_pages('title_li='); ?>
    			</ul>
    		</li>
    	</div>
    
    	<?php endif; ?>
    	</ul>
    </div>
    
    <div class="sidebar2">
    	<ul>
    <?php if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar("Sidebar2") ) : ?>
    		<div class="sidebox">
    		<li>
    			<h3 class="sidetitl">Pages</h3>
    			<ul>
    			<?php wp_list_pages('title_li='); ?>
    			</ul>
    		</li>
    	</div>
    
    	<?php endif; ?>
    	</ul>
    </div>
    
    </div>
    Moderator James Huff

    @macmanx

    Support Team Rep.

    In that case, try the tabs.php or sponsors.php templates.

    Tabs :

    <div class="clear"></div>
    <div id="newtabs" class="tabox rounded">
        <ul class="tabsnav">
            <li class="fea"><a href="#twitter"> Twitter </a></li>
    		<li class="rec"><a href=" #video"> Video </a></li>
    		<li class="pop"><a href="#recent"> Recent </a></li>
        </ul>
    
    <div id="twitter" class="tabsdiv">
    <?php
    $twit = get_option('grft_twit');
    include('twitter.php');?>
    <?php if(function_exists('twitter_messages')) : ?>
           <?php twitter_messages("$twit") ?>
           <?php endif; ?>
    </div>
    
    <div id="video" class="tabsdiv">
    <div> <?php $vid = get_option('grft_video'); echo stripslashes($vid); ?></div>
    </div>
    
     <div id="recent" class="tabsdiv">
        <ul>
    		<?php get_archives('postbypost', 8); ?>
        </ul>
    </div>
    </div>

    TAB

    <div id="tabzine" class="widgets rounded">
    
    <?php
    	$featucat = get_option('grft_gldcat');
    	$featucount = get_option('grft_gldct');
    	$my_query = new WP_Query('showposts='. $featucount .'&category_name='. $featucat .'');
    	if ($my_query->have_posts()) :
    ?>
    
    <ul id="tabnav" >
    	<?php while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>
            <li>
    		<a class="listab rounded" href="#feature-<?php the_ID(); ?>">
    		<?php boxim() ?>
    
    		<h3> <?php echo ShortenText(get_the_title()); ?></h3>
    		<p><?php the_content_rss('', TRUE, '', 15); ?> </p>
    		 </a>
    		</li>
    		<?php endwhile; ?>
    
    	</ul>
    
    	<?php endif; ?>
    <?php if ($my_query->have_posts()) :?>
    
    <div class="tabdiv">
    
    	<?php while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>	
    
    	<div id="feature-<?php the_ID(); ?>" class="videoid">
    		<a href="<?php the_permalink() ?>"><span class="shade"></span></a>
    <?php slidim() ?>
    
    	</div>
    <?php endwhile; ?>
    </div>
    <?php endif; ?>
    
    </div>

    Sponsers

    is empty because i removed it my self,so the sponsers tab is vanished like i said up-there

    Moderator James Huff

    @macmanx

    Support Team Rep.

    I’m sorry, it was in the sidebar. That’s what I get for looking first thing in the morning. Remove this from your Sidebar template:

    <div class="sidebox">
    		<li>
    			<h3 class="sidetitl">Pages</h3>
    			<ul>
    			<?php wp_list_pages('title_li='); ?>
    			</ul>
    		</li>
    	</div>

    Okai removed it .. but this actually only removed one tab !!

    take a look :

    http://i35.tinypic.com/hwhh95.png

    Moderator James Huff

    @macmanx

    Support Team Rep.

    That particular chunk of code is in your sidebar template twice. Remove the other chunk and you’ll be fine.

    Thanks alot sir 😉
    You really made my day !!
    one more question…
    how i can put my logo IN ? :O

    Moderator James Huff

    @macmanx

    Support Team Rep.

    Where do you plan to put it?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Removing Sponsers and Pages tabs’ is closed to new replies.