Header and footer management

Discussion in 'WordPress' started by opportunist86, Aug 18, 2011.

  1. #1
    1. I want to align my site tile to the center.
    2. Hide comment and category box from the footer
    3. Hide Home button from header image.
    my site is as follows
    www.accapastpapers.com.pk
     
    opportunist86, Aug 18, 2011 IP
  2. gmonlinegames

    gmonlinegames Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    To get the site title to the center, use:

    <center>Title</center>

    or

    <div style="text-align:center;">Title</div>

    You can hide your comment field in your settings in the administration of your wordpress blog. If you want to remove it from the code, you need to edit the single.php and remove the PHP comment tag in the code.

    To hide the home button you need to edig header.php. Need your code to say more about this, but hope this will get you going
     
    gmonlinegames, Aug 18, 2011 IP
  3. opportunist86

    opportunist86 Active Member

    Messages:
    422
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Below is my header code. Kindly help with this.

    thanks a million
    <?php
    /**
    * The Header for our theme.
    *
    * Displays all of the <head> section and everything up till <div id="content-box">
    *
    * @package WordPress
    * @subpackage Pilcrow
    * @since Pilcrow 1.0
    */
    ?><!DOCTYPE html>
    <!--[if IE 7]>
    <html id="ie7" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if (gt IE 7) | (!IE)]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <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', 'pilcrow' ), max( $paged, $page ) );

    ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    /* We add some JavaScript to pages with the comment form
    * to support sites with threaded comments (when in use).
    */
    if ( is_singular() && get_option( 'thread_comments' ) )
    wp_enqueue_script( 'comment-reply' );

    /* Always have wp_head() just before the closing </head>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to add elements to <head> such
    * as styles, scripts, and meta tags.
    */
    wp_head();
    ?>
    </head>

    <body <?php body_class(); ?>>
    <?php do_action( 'pilcrow_before' ); ?>
    <div id="container" class="hfeed">
    <div id="page" class="blog">
    <div id="header">
    <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    <<?php echo $heading_tag; ?> id="site-title">
    <span>
    <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    </span>
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-3043921243817398";
    /* Leader Board (Top Banner) */
    google_ad_slot = "4173627891";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </<?php echo $heading_tag; ?>>

    <div id="nav" role="navigation">
    <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'pilcrow' ); ?>"><?php _e( 'Skip to content', 'pilcrow' ); ?></a></div>
    <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    </div><!-- #nav -->

    <div id="pic">

    <?php
    // Check if this is a post or page, if it has a thumbnail, and if it's a big one
    if ( is_singular() &&
    has_post_thumbnail( $post->ID ) &&
    ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
    $image[1] >= HEADER_IMAGE_WIDTH ) :
    // Houston, we have a new header image!
    echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
    elseif ( get_header_image() ) : ?>
    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    <?php endif; ?>
    </a>
    </div><!-- #pic -->
    </div><!-- #header -->

    <div id="content-box">
     
    opportunist86, Aug 18, 2011 IP
  4. opportunist86

    opportunist86 Active Member

    Messages:
    422
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    Cant remove comment and cetagory box from the settings menu. Any more assistance?
     
    opportunist86, Aug 18, 2011 IP
  5. gmonlinegames

    gmonlinegames Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    regarding the comments:

    try to remove this line from single.php -<?php wp_list_comments() ?> it may have som eextra code in there, but mainly remove the whole tag

    In the code above I can see you are using the WP nav tag. I think you should be able to solve it if you create a custom menu under appearance -> Menus. No sure there, but it may also be in your functions.php file
     
    gmonlinegames, Aug 18, 2011 IP