Support » Theme: Chunk » How to move my site description above my site title?

  • willtravel4hugs

    (@willtravel4hugs)


    I am new to this blogging thing and originally started out with wordpress.com until I realized you couldn’t customize as much as you wanted (and it’s a pain if I ever wanted to switch over later) so I changed to .org. I know nothing about css code, but I’ve been able to at least figure out enough where I’ve managed to edit all the colors on my site and even some fonts.

    I’m stuck though in what I need to add to my child theme’s code to get the site title “alternative perspective….” to appear above the header “willtravel4hugs”

    I am basically trying to get it to look like it did on my wordpress.com blog: willtravel4hugs.wordpress.com but that theme was not available on .org so I had to pick a similar one and edit it how I liked.

    http://www.willtravel4hugs.com is where I’m at now.

Viewing 15 replies - 1 through 15 (of 63 total)
  • WPyogi

    (@wpyogi)

    Hi again – so here’s what you need to do for this and for adding a logo (per your other thread) – make a new header.php file in the child theme and put this in it:

    <?php
    /**
     * @package Chunk
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    	<meta charset="<?php bloginfo( 'charset' ); ?>" />
    	<title><?php wp_title( '|', true, 'right' ); ?></title>
    	<link rel="profile" href="http://gmpg.org/xfn/11" />
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    	<?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    
    <div id="container">
    
    	<div id="header">
    
    		<a href="URL FOR LOGO LINK"><img src="URL FOR IMAGE" alt="ALT TEXT FOR LOGO class="logo" /></a>
    
    		<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
    
    		<h1 id="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    
    	</div>
    
    	<div id="menu">
    		<?php
    			// Do we have a header image around?
    			if ( '' != get_header_image() ) :
    		?>
    		<div id="header-image">
    			<a href="<?php echo home_url( '/' ); ?>">
    				<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
    			</a>
    		</div>
    		<?php endif; ?>
    		<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    	</div>

    Then we’ll also need to add some CSS to position things, but start with that. Also, you need to replace my ALL CAPS with the appropriate code for your site.

    willtravel4hugs

    (@willtravel4hugs)

    so do I just go into the host and under chunk child, i create “new file” and label it “header.php”?

    And is there a way to just upload an image from the computer as opposed to put in a url?

    willtravel4hugs

    (@willtravel4hugs)

    also I’m not sure what you mean by “appropriate code” for your site? could you give an example? This looks just like the header.php for the parent file, which makes me think I should be able to just add a logo somewhere in the dashboard, right? Sigh. This is so confusing haha.

    willtravel4hugs

    (@willtravel4hugs)

    Ok, with just copying it exactly as you have posted it, it HAS moved my title above, but it’s off center and there’s a broken link for an image on the left. I don’t want an image with the site description, i want an image with the title!

    WPyogi

    (@wpyogi)

    Yes, that’s what I meant by needing to add CSS to adjust things. And you need to add the file path for the logo image you want to add – the all caps here – you need to change to the actual info for your site:

    <a href="URL FOR LOGO LINK"><img src="URL FOR IMAGE" alt="ALT TEXT FOR LOGO class="logo" /></a>

    URL FOR LOGO LINK = if you want the logo clickable, put the URL for the linked page (likely your site URL) there

    URL FOR IMAGE = upload the logo image to your media library and copy the URL for the image to this space

    ALT TEXT FOR LOGO = short description for the logo image

    I also see a typo I made – missing a closing quotation mark here:

    alt="ALT TEXT FOR LOGO

    should be

    alt="ALT TEXT FOR LOGO"

    Once you put the image in, we can do the CSS

    willtravel4hugs

    (@willtravel4hugs)

    Ok it’s up! It will be a little bigger than my font at the moment, but I ultimately want the font changed to “League Gothic” which is taller and I have a post about that somewhere too, as it is not changing to the font I want. (Even though I could view this font on this same browser on my wordpress.com blog)

    WPyogi

    (@wpyogi)

    Cool – that looks super! So do you want it moved at all? On the font, the reason you could use it on your other site is that it was part of the theme there – and it’s not part of this version of the theme.

    See if this will work:

    http://wordpress.org/plugins/use-any-font/

    (I’ve not used that plugin so you’ll have to look into it.)

    If you need to download the font, it’s here:

    http://www.fontsquirrel.com/fonts/League-Gothic

    willtravel4hugs

    (@willtravel4hugs)

    Ok I’ll try that. Yes, I want it next to “willtravel4hugs” not next to “alternative perspective of looking at the world” please 🙂

    WPyogi

    (@wpyogi)

    Looks like you are changing things too – which makes it hard to do this at the same time – but try these and see where we are when you’re done:

    add the top margin here:

    #header {
            min-height: 0;
    	padding-top: 0;
    	width: 800px;
            margin-top: 20px;
    }

    add this:

    img.logo {
       float: left;
    }
    
    #site-title {
    	color: #4ba6b5;
    	font-family: Oswald, Helvetica, Arial, sans-serif;
    	font-size: 70px;
            clear: none;
    }

    willtravel4hugs

    (@willtravel4hugs)

    Oh sorry! I was just trying out the font thing you gave me. Should we get the font settled before we try that? Or will it matter?

    Thanks for the plug-in. it works. The problem is it was the wrong size so that’s something I’m having to edit in the css which is all the changing going on! I think my site may be narrower over all than I want too.

    Can you help me to get it to look as close to willtravel4hugs.wordpress.com as possible in terms of the size of the site title/description and width?

    willtravel4hugs

    (@willtravel4hugs)

    Yeah, it didn’t work so I am thinking we need to get the text in order before we can tell the logo where to go? But then am I going to have this problem every time I am changing the text?

    I left the font size 200 for now. When I changed it to 70 px, my menu went askew too? It was kind of in the right place, but then my font was too small and it was off to the right instead of being centered

    WPyogi

    (@wpyogi)

    Add this for sure:

    img.logo {
       float: left;
    }
    
    #menu {
       clear: both;
    }

    Your font size is not working because you are missing a semi-colon in the line above here (after sans-serif):

    #site-title {
    	color: #4ba6b5;
    	font-family: "Oswald", Helvetica, Arial, sans-serif
    	font-size: 300px;
    }

    So the site-title is currently 80px set in the parent theme.

    willtravel4hugs

    (@willtravel4hugs)

    i thought i fixed that already. the font is working. i installed the plug in. but now the font is misaligned and huge and the other is too small. I want it to look like willtravel4hugs.wordpress.com (except with the logo to the left of the site title)

    WPyogi

    (@wpyogi)

    Now that it’s fixed – 300px is working – you can see that it’s too big, so you need to make that smaller – try 100px.

    willtravel4hugs

    (@willtravel4hugs)

    100 is too small and it messes up the menu again. But 200 is CLOSE… but see how tall mine is in comparison to the wordpress.COM site I provided? They are using the same font, as far as I know.

Viewing 15 replies - 1 through 15 (of 63 total)
  • The topic ‘How to move my site description above my site title?’ is closed to new replies.