• Hi there,
    I’m using the motion theme on my music blog..
    While I’m very happy with the theme, the one thing that annoys me is that I want to remove the [Home] [Contact] [RSS Feed] buttons at the top. I can do this myself by editing my header.php file – by leaving <div id=”topmenu”> with nothing in it.

    This leaves an ugly gap at the top, where ideally I would have my blog name/logo. But if completely remove <div id=”topmenu”>, my design breaks and everything moves really far to the left.

    Any help would be much appreciated.

Viewing 13 replies - 1 through 13 (of 13 total)
  • removing the whole div #topmenu does not break the design;

    <div id="topmenu">
                    <ul>
                            <?php if ( !motion_hide_homelink() ) : ?><li class="page_item<?php echo ( is_home() || is_front_page() ? ' current_page_item' : '' ); ?>"><a href="<?php echo get_option( 'home' ); ?>/">Home</a></li><?php endif; ?>
                            <?php wp_list_pages( 'depth=1&title_li=0&sort_column=menu_order' ); ?>
                            <li><a class="rss" href="<?php bloginfo( 'rss2_url' ); ?>">RSS</a></li>
                    </ul>
            </div>

    however, you still have the search block there, keeping the logo and title down.

    adding something like the following to style.css might help there:
    #top {float:right;}

    or, if you don’t mind that uneccessary bits are loaded to the browser, you could do the whole thing with css:

    #top {float:right;}
    #topmenu { display: none; }

    Thread Starter Caleb Withers

    (@hoget10)

    Hi,
    Thanks for the response.
    By following your instructions, I end up with my site looking like this.

    What I’m going for is to actually move the title up, to get the top of my site looking like this.

    i can see, you put the code back in – is that you giving up?

    the last adjustment would be some changes to style.css:

    additional to the suggested changes, change the top margin of this style from 35px to 0px:

    #header #logo {
    	float: left;
    	width: 480px;
    	margin: 35px 0 10px 0;
    }

    http://www.w3schools.com/css/

    Thread Starter Caleb Withers

    (@hoget10)

    Hi,
    Thanks for the speedy response.
    Even through reducing the top margin to zero, the top of the logo is parallel with the bottom of the searchbox, it’d be ideal if it could be parallel with the top, and then I would also bring up the main body of the site.

    I’ve left the changes live this time so you can see πŸ˜›

    a. you forgot to add #top{float:right;} as i suggested earlier;

    b. you can use a negative top margin in #header #logo to pull the title further up.

    Thread Starter Caleb Withers

    (@hoget10)

    The #top{float:right;} is at the bottom of my stylesheet, unless it needs to be somewhere else?

    And the negative margin has an unintended side-affect which I don’t think I should leave on my site…

    Thread Starter Caleb Withers

    (@hoget10)

    I suppose I could attempt to rewrite the header from scratch with only a left floating logo and right floating searchbox?

    i see it now, but is is not applied, because the /Silky Header
    blocks any further styles to be aplied.

    /Silky Header
    #top {float:right;}
    #topmenu { display: none; }

    comment it like this:

    /*Silky Header*/
    #top {float:right;}
    #topmenu { display: none; }

    that should work – no need for negative top margin.

    Thread Starter Caleb Withers

    (@hoget10)

    My bad, guess you learn something about CSS every day.
    However, even with the updated comment formatting, the logo still appears under the search bar.

    What I did do is change my header.php to this, it’s live on my site right now. If it were possible to move the search box further to the right (right aligned at 980px to be precise), and maybe make it a bit smaller, that would also be a viable way of doing it.

    as the div #search is now moved from the div #top, where it was previous, into the div#header, you need to adjust the styles:

    #top #search {
    	float: right;
    	width: 300px;
    	text-align: right;
    }
    #top #searchform input {
    	padding: 3px;
    }
    #top #searchbox {
    	width: 180px;
    	color: #555;
    	font-size: .75em;
    	border: 1px solid #ddd;
    	background: #eee;
    }
    #top #searchbox:hover {
    	background: #fff;
    }
    #top .submitbutton {
    	cursor: pointer;
    	background: url(images/blacktrans.png);
    	color: #fff;
    	font-size: 0.8em;
    	padding: .08em;
    	vertical-align: top;
    }
    #top .submitbutton:hover {
    	background: url(images/whitetrans.png);
    }

    replace the word #top with the word #haeder in the above styles.

    every improvement is a change – but not every change is an improvement.
    inaugural toast of a lecturer at the university

    Thread Starter Caleb Withers

    (@hoget10)

    Thank you very much!
    My website is now working just as I want it, and I have more CSS knowledge than I had when I posted this.
    I’ll link to your site on my next post as a thank you (not that many people read my blog yet, but it’s the thought that counts :P)?

    you are welcome,

    i suggest that you link to this forum as a way to help others to find some assistance with their wordpress associated problems as well.

    Thread Starter Caleb Withers

    (@hoget10)

    Will do.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Editing Theme Header’ is closed to new replies.