Winner of the Best WordPress Business Website - WP Honors 2011
Since 2004
 

Forums

 

Manuals

 

Videos

 

Live Support

 

WPMU.org

Add Content Right Below Top Navigation

Pro

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

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!

Elite

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

Elite

Looks like Mason beat me to the response! :)

Pro

yes... sorry I am using the edu clean theme. I see a bunch of responses so I will be busy reading. Thanks.

Staff

@David - I only beat you in terms of time. Your response here is epic. I say you win :D

Staff

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

Pro

Thanks... I am all set.

We can help you out. Become a member today to:

  • Let our team help you out today and access to over 250+ Premium Plugins and Themes
  • Find out why people saying "it's like having your own developer"
  • WPMU DEV - The WordPress Experts