Forum Replies Created

Viewing 15 replies - 31 through 45 (of 67 total)
  • Thread Starter ian277

    (@ian277)

    I just removed the functions.php all together because anything I would upload regarding the php code would show up above the header.

    And I’ve tried clearing cache but it’s not working either. I see there is nothing above the header on another computer though.

    Thread Starter ian277

    (@ian277)

    I’ve added a new functions.php from a php in dreamweaver to your spec and it ended up on the homepage above the header.

    https://www.heavybrunch.com

    Thread Starter ian277

    (@ian277)

    Actually, after I uploaded a blank functions.php with your copied code, I was unable to access the dashboard of the site, so I removed the functions.php file and it was back to normal.

    Thread Starter ian277

    (@ian277)

    Nice, thanks for this.

    I initially just reduced the header image size in photoshop and uploaded it with the 150px height dimensions. I just copied your functions code and uploaded that and it looks great, but the header change shows on the home page and not any other pages on the site – it reverts back to the original image and size. I cleared cache but it hasn’t changed.

    Thread Starter ian277

    (@ian277)

    No, sorry. I could have been more specific.

    The header size is 950×260, and I want to reduce the header height to maybe 150px, and reduce the padding above it to keep it closer to the top of the page.

    I just quickly made a png of the dimensions specified by the header.

    Any thoughts?

    Oh man, I see that now. And it’s changed now. Thank you so much Alchymyth.

    P.S. – Alchymyth = Rad name.

    Sorry, here’s the pastebin

    https://pastebin.com/YLZGmVU4

    Here it is –

    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="main">
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    ?><!DOCTYPE html>
    <!--[if IE 7 | IE 8]>
    <html class="ie" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 7) | !(IE 8)  ]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    <link rel="profile" href="https://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
    <!--[if lt IE 9]>
    <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    <![endif]-->
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="page" class="hfeed site">
    	<header id="masthead" class="site-header" role="banner">
    		<hgroup>
    			<h1 class="site-title"><a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    			<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    		</hgroup>
    
    		<?php $header_image = get_header_image();
    		if ( ! empty( $header_image ) ) : ?>
    			<a>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
    		<?php endif; ?>
    
    				<nav id="site-navigation" class="main-navigation" role="navigation">
    			<h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
    			<div class="skip-link assistive-text"><a href="#content">"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a></div>
    			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
    		</nav><!-- #site-navigation -->
    
    	</header><!-- #masthead -->
    
    	<div id="main" class="wrapper">

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin. As it stands, your code has now been permanently damaged/corrupted by the forum’s parser.]

    Wow, that’s great thanks.

    I copied what you sent and pasted it to a header.php I created in dreamweaver and uploaded it to my child theme folder but no changes. Am I missing something?

    Ok, I created a header.php and copied the header.php from the twentytwelve theme uploaded it through cyberduck to my child theme folder and placed the code verbatim what you said to do, but no changes. Are there any spaces I should know about?

    thanks

    I would also like to move the menu to below the header image.

    I copied the header.php from the twentytwelve theme and pasted it into my twentytwelve child theme right under the style.css import as you directed Alchymyth. I didn’t see any changes. Am I doing it correctly?

    https://www.heavybrunch.com

    Thread Starter ian277

    (@ian277)

    Yeah thanks again for that. I’m not sure what the difference in it working on another site is. I’ve uploaded everything (all code included verbatim of what you sent and that didn’t work either.

    Thread Starter ian277

    (@ian277)

    Hmm, it’s not working for me at all when I refresh it. All the pages are published. Weird.

    Andrew Nevins brought it to my attention that the spacing in the them folder mattered and that fixed the issue with my other problem with a twenty twelve child theme. I’m simply using the same style folder as the one that worked for my other website, but it’s not working for this site.

    Any Ideas?

    Thread Starter ian277

    (@ian277)

    Hi everyone,

    I’ve resolved this issue with Andrew Nevin’s help.

    My problem was the folder name for my child theme. I had it as twentytwelve child but removed the space and changed it to twentytwelvechild and the style.css worked.

    Thanks for all the help!

    Thread Starter ian277

    (@ian277)

    Holy Cripes! You did it!

    I’ve got the child theme up now. I didn’t realize that the folder name had an influence on the style.css.

    I’m all good now. Thanks Andrew!

    Marking this as resolved.

Viewing 15 replies - 31 through 45 (of 67 total)