Forum Replies Created

Viewing 15 replies - 31 through 45 (of 125 total)
  • Thread Starter mrmccarrin

    (@mrmccarrin)

    I now recieve this error only:

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/43/d459884280/htdocs/wordpress-4.0/wordpress/wp-content/themes/shape/inc/custom-header.php:5) in /homepages/43/d459884280/htdocs/wordpress-4.0/wordpress/wp-includes/pluggable.php on line 1173

    Thread Starter mrmccarrin

    (@mrmccarrin)

    I do not have it called anywhere right now and currently it is producing a double header, which if I refresh a bunch produces the error.

    Thread Starter mrmccarrin

    (@mrmccarrin)

    Thank you, but I am continuing to get the same error.

    Currently, this is my code:

    <?php //empty ?>
    <!DOCTYPE html>
    
    <!--[if IE 8]>
    <html id="ie8" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 8) ]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    <title><?php
    /*
    * Print the <title> tag based on what is being viewed.
    */
    global $page, $paged;
    
    wp_title( '|', true, 'right' );
    
    // Add the blog name.
    bloginfo( 'name' );
    
    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( 'description', 'display' );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo " | $site_description";
    
    // Add a page number if necessary:
    if ( $paged >= 2 || $page >= 2 )
    echo ' | ' . sprintf( __( 'Page %s', 'shape' ), max( $paged, $page ) );
    
    ?></title>
    <link rel="profile" href="https://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <!--[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(); ?>>
       <nav role="navigation" class="site-navigation main-navigation">
         <h1 class="assistive-text"><?php _e( 'Menu', 'shape' ); ?></h1>
         <div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'shape' ); ?>"><?php _e( 'Skip to content', 'shape' ); ?></a></div>
    <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    </nav><!-- .site-navigation .main-navigation -->
    <div id="page" class="hfeed site">
    
         <header id="masthead" class="site-header" role="banner">
             <div>
    
         <h1 class="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
         <h2 class="site-description"><?php bloginfo( 'description' ); ?>Lawyer Website</h2>
    </div>
    
         <div style="padding-top:45px; margin-left: 180px;">
    <a href="https://lawyerdev.meganrmccarrin.com/wp-content/uploads/2014/10/Lawyer-Logo.jpeg"><img src="https://lawyerdev.meganrmccarrin.com/wp-content/uploads/2014/10/Lawyer-Logo-300x118.jpeg" alt="Lawyer Logo" width="300" height="118" class="alignnone size-medium wp-image-38" /></a></div>
    <div style="float: right; margin-right: 50px; top: 5px; margin-top: -75px;  font-size: 2.6rem; color: black;  font-weight: 200; font-family: Merriweather;">STOP BY OR CALL: (718)-369-6666</div><br>
         </header><!-- #masthead .site-header -->
    <div id="main" class="site-main"></div>

    Do you have another suggestion?

    Thank you for your time,

    Megan

    Thread Starter mrmccarrin

    (@mrmccarrin)

    I apologize, I do not know why pastebin is not working. Does this work:

    <!DOCTYPE html>
    
    <!--[if IE 8]>
    <html id="ie8" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 8) ]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    <title><?php
    /*
    * Print the <title> tag based on what is being viewed.
    */
    global $page, $paged;
    
    wp_title( '|', true, 'right' );
    
    // Add the blog name.
    bloginfo( 'name' );
    
    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( 'description', 'display' );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo " | $site_description";
    
    // Add a page number if necessary:
    if ( $paged >= 2 || $page >= 2 )
    echo ' | ' . sprintf( __( 'Page %s', 'shape' ), max( $paged, $page ) );
    
    ?></title>
    <link rel="profile" href="https://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <!--[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(); ?>>
       <nav role="navigation" class="site-navigation main-navigation">
         <h1 class="assistive-text"><?php _e( 'Menu', 'shape' ); ?></h1>
         <div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'shape' ); ?>"><?php _e( 'Skip to content', 'shape' ); ?></a></div>
    <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    </nav><!-- .site-navigation .main-navigation -->
    <div id="page" class="hfeed site">
    
         <header id="masthead" class="site-header" role="banner">
             <div>
    
         <h1 class="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
         <h2 class="site-description"><?php bloginfo( 'description' ); ?>Lawyer Website</h2>
    </div>
    
         <div style="padding-top:45px; margin-left: 180px;">
    <a href="https://lawyerdev.meganrmccarrin.com/wp-content/uploads/2014/10/Lawyer-Logo.jpeg"><img src="https://lawyerdev.meganrmccarrin.com/wp-content/uploads/2014/10/Lawyer-Logo-300x118.jpeg" alt="Lawyer Logo" width="300" height="118" class="alignnone size-medium wp-image-38" /></a></div>
    <div style="float: right; margin-right: 50px; top: 5px; margin-top: -75px;  font-size: 2.6rem; color: black;  font-weight: 200; font-family: Merriweather;">STOP BY OR CALL: (718)-369-6666</div><br>
         </header><!-- #masthead .site-header -->
    <div id="main" class="site-main"></div>
    Thread Starter mrmccarrin

    (@mrmccarrin)

    Thread Starter mrmccarrin

    (@mrmccarrin)

    Thread Starter mrmccarrin

    (@mrmccarrin)

    My custom-header.php is currently empty because anytime I put my code in, I get the error above.

    This is what I was attempting to put in:

    </script>”>

    or, I think you can view it here:

    Thank you.

    Thread Starter mrmccarrin

    (@mrmccarrin)

    I apologize, I just realized that I meant to title this Custom Header. Plus, I wanted to add that any changes I try to make to my custom header, changes the look of the back end of my website.

    Thank you.

    Megan

    Thread Starter mrmccarrin

    (@mrmccarrin)

    That worked! Thank you for all of your help.

    Thread Starter mrmccarrin

    (@mrmccarrin)

    Ok, I have this and I am still getting a ton of white space to the right.

    .main-navigation {
        background: none repeat scroll 0 0 #303030;
        border-bottom: 5px solid #6e6e6e;
        clear: both;
        display: block;
        height: 45px;
        margin-bottom: -20px;
        padding-left: 38%;
        width: 100%;
    }
    Thread Starter mrmccarrin

    (@mrmccarrin)

    Thank you again for your help. However, I apologize, I just don’t understand. WHen I change the width of the nav to 100%, there is still a huge white space to the left no matter how many changes I make to the width of the body of the site? Is there something else wrong?

    I have full control. I made the theme.

    Thread Starter mrmccarrin

    (@mrmccarrin)

    Thank you. That worked.

    However, I am very confused. The reason I set those widths to 2500px was because that was the only way I could get the menu bar and banner to stretch accross the whole screen? How else would I do that?

    Thread Starter mrmccarrin

    (@mrmccarrin)

    I have removed the elements that set an inline style in my footer and have adjusted the width of my body to several different sizes and still no dice.

    Any other suggestions?

    Thank you for your time?

    Megan

    Thread Starter mrmccarrin

    (@mrmccarrin)

    Thank you for your reply. I definitly went through with firebug and cannot figure this out as the only two items set to 2500 pixels are my nav and banner, which I did only because the page was so wide.

    I played with firebug for awhile and cannot figure this out. Do you have any additional suggestions?

    Thank you.

    Megan

    Forum: Fixing WordPress
    In reply to: Floating Footer
    Thread Starter mrmccarrin

    (@mrmccarrin)

    Hi.

    Yes, I was able to figure it out. I only needed to adjust my margin-top.

    Thank you,

    Megan

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