Add Content Right Below Top Navigation
A couple of questions about the network theme please.
1.) How do I add a form or other html code to the space directly below the top navigation?
2.) How do I remove the "currently powering 1 blog" button on the upper right hand corner of home page?
3.) Where do I add Google analytic code to the site?
4.) How do I change the home page from a three colum lay out to a 2 column lay out?
THANKS for all of you help!
Everyday at WPMU DEV we help hundreds of WP Users. Become a member today to:
- Download 250+ Premium Plugins and Themes
- Get unlimited support from WordPress Experts
- Get help with your WordPress or BuddyPress projects
Help & Support from WPMU DEV members and staff
Hiya randit,
I want to make sure I'm providing the right answers here. I know you mentioned the network theme - but it seems like you may be referring to the edu-clean theme? Let us know an we'll be glad to assist.
Thanks!
Hi randit,
I believe you're using the Edu-clean theme, but the Network theme seems to have gotten tagged here somehow! In any case, let's take a look at your inquiries!
1.) How do I add a form or other html code to the space directly below the top navigation?
That would depend on whether you're using a static page for your front page or not (discussed below). but I believe that should be as simple as included your html code right below the <?php get_header(); ?> line in the relevant index.php or home.php file. You may want to include that in the page.php file, if you're using a static front page.
2.) How do I remove the "currently powering 1 blog" button on the upper right hand corner of home page?
You'd have to make a bit of an edit in the header.php file, where you should find the relevant line of code around line 130. It's very neatly separated with line breaks so you should be able to simply remove the following to achieve that.
<?php if($multi_site_on == "true"){
if( function_exists('get_sitestats')) { ?>
<div class="site-stats"><span><?php _e("Currently powering",TEMPLATE_DOMAIN); ?> <?php
$stats = get_sitestats();
$tmp_user_count = number_format ($stats[ 'users' ] );
$tmp_blog_count = number_format ($stats[ 'blogs' ] );
print "<strong>" . $tmp_blog_count . " blogs" . "</strong>";
;?></span></div>
<?php } } ?>
3.) Where do I add Google analytic code to the site?
Well, you've got a choice there. You could simply add the analytic code right in the header.php file along with whatever edit you're making from your prior question. :)
Or you could use our Google Analytics plugin that would give you lots of options for sitewide statistics on your network. :)
http://premium.wpmudev.org/project/google-analytics-for-wordpress-mu-sitewide-and-single-blog-solution
4.) How do I change the home page from a three colum lay out to a 2 column lay out?
Apart from making a bit of an extensive edit to the front page code, you could simply set a static page as your front page at Settings > Reading. The static page will default to the 2-column template used for all other pages.
How would that work for you?
Cheers,
David
Get personal, comprehensive and timely support and assistance
from WordPress Experts
Looks like Mason beat me to the response! :)
yes... sorry I am using the edu clean theme. I see a bunch of responses so I will be busy reading. Thanks.
@David - I only beat you in terms of time. Your response here is epic. I say you win :D
Hiya randit,
As we haven't heard anything for awhile on this one I'm marking it as resolved. Should ya have the need for further instruction, please 'reopen' this thread and we'll continue to take a look.
You can always alternatively open up a new thread.
Thanks!
Get personal, comprehensive and timely support and assistance
from WordPress Experts
Thanks... I am all set.





A powerful front page theme perfect for displaying network-wide content on WordPress or BuddyPress