• Resolved mmoworlds

    (@mmoworlds)


    I just want to remove or at least modify the “top articles” on sidebar but I don’t know where to find it. It’s not a widget and I can’t see any plugin that controls it. The sidebar php doesn’t have anything called top articles.

    http://mmo-worlds.info

Viewing 9 replies - 1 through 9 (of 9 total)
  • If you have a good text editor you can easily find where it is defined in the code. Try searching you theme folder for files containing ‘Top Articles’ to see where it’s located.

    You could of course, just hide it by adding this to your style sheet:

    div.top {
        display: none;
    }

    but that would just leave you with a gap with nothing in it.

    Thread Starter mmoworlds

    (@mmoworlds)

    Thank you for the reply. I suddenly had the idea to search the theme upload folder I have on my computer and I found “top articles” in the style css file.

    Supposedly the “top articles” are the most recent articles in the past 2 weeks that have the most comments. In style.css I see featured/top articles but that is super confusing because there are two categories – featured and top articles (two different set of links).

    So I am still confused. I know that the css is talking about the “featured” part because there is stuff about images. As you can see the top articles have no images.

    So confused right now.

    /************************************************************\
    * Featured / Top Articles
    \************************************************************/
    	.ftop {padding:10px;}
    	.ftop .featured {float:left;width:630px;position:relative;}
    	.ftop .featured .fwrap {width:630px;height:280px;overflow:hidden;position:relative;}
    	.ftop .featured ul {width:100000px;position:absolute;top:0;left:0;}
    	.ftop .featured li {list-style:none;float:left;width:630px;}
    	.ftop .featured li img {vertical-align:middle;display:block;width:630px;height:230px;overflow:hidden;}
    	.ftop .featured li div {margin-top:1px;padding:5px;}
    	.ftop .featured li div a {font-weight:bold;}
    	.ftop .featured li div a.title {font-size:18px;font-weight:bold;}
    
    	.ftop .featured .fthumbs {position:absolute;top:10px;left:10px;z-index:8;height:215px;overflow:hidden;}
    	.ftop .featured .fthumbs img {border:2px solid #333;vertical-align:middle;margin-bottom:5px;width:62px;height:34px;display:block;}
    	.ftop .featured .fthumbs img.active {border:2px solid #fff;}
    
    	.ftop .featured a {outline:none;}
    
    	.ftop .top {float:right;width:300px;}
    	.ftop .top li {padding:10px 0;list-style:none;}
    	.ftop .top li a {font-weight:bold;}
    	.ftop .top li span {display:block;font-size:11px;height:14px;overflow:hidden;}
    	.ftop .top li span a.comments {float:right;}

    Thread Starter mmoworlds

    (@mmoworlds)

    anyone?

    Lesta G

    (@lesta-g)

    what theme are you using?

    Thread Starter mmoworlds

    (@mmoworlds)

    Gamenow

    Thread Starter mmoworlds

    (@mmoworlds)

    So how does it even know which posts to put in that box? I didn’t make a “top articles” category.

    Thread Starter mmoworlds

    (@mmoworlds)

    is this I tried removing the entire bottom part of the ftop parts in style.css but it did nothing so I put it back

    Thread Starter mmoworlds

    (@mmoworlds)

    Okay, so I finally found something. It was in the header php

    <div class="top">
    					<span class="heading1"><span>Top Articles</span></span>
    					<ul>
    					<?php
                                            $kt=time()-1209600;
    						$sql = "SELECT * FROM $wpdb->posts WHERE post_date_gmt > FROM_UNIXTIME(".$kt.") AND post_type = 'post' 	ORDER BY comment_count DESC LIMIT 5";
    						$top_posts = $wpdb->get_results($sql);
    
    						foreach ($top_posts as $post)  :
    							?>
    							<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><span><a class="comments" href="<?php the_permalink(); ?>#comments"><?php echo $post->comment_count; ?> Comments</a>Posted Under: <?php the_category(', '); ?></span></li>
                                                            <?php
    						endforeach;
    					?>
    					</ul>
    				</div>

    Is there a way to make it show more posts? I tried modifying the “$kt=time()-1209600” value but it made the post disappear (but the box is still there)

    Thread Starter mmoworlds

    (@mmoworlds)

    I have changed the thread to resolved since I was able to do a temporary fix.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘help with sidebar’ is closed to new replies.