Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter bentirongym

    (@bentirongym)

    I would like it to say the name of the title of the page or post ??

    Thread Starter bentirongym

    (@bentirongym)

    lol everything says “this is my title” now
    i think were getting closer though! thanks so much for taking the time to help me, greatly appreciated ??

    Thread Starter bentirongym

    (@bentirongym)

    weird, tried that and it keeps saying <title>!

    Thread Starter bentirongym

    (@bentirongym)

    tried a couple different ways, no luck… heres my header.php.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter bentirongym

    (@bentirongym)

    alright did all of the above, inserted and modified… inserted the below text into the header php file…
    <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’, ‘twentyten’ ), max( $paged, $page ) );

    ?></title>

    page title is coming up on top of browser but for some reason <title> comes up on the browser too?

    Thread Starter bentirongym

    (@bentirongym)

    so my current theme, lifestyle, doesnt have a header.php file? where should i place the codE?

    Thank you sooooooooooooooooooooo much for your help!

    Thread Starter bentirongym

    (@bentirongym)

    This is weird… just looking at my website in the editor… all my other websites have this…

    Templates
    404 Template
    (404.php)

    Archive Page Template
    (page_archive.php)
    Blog Page Template
    (page_blog.php)
    Comments
    (comments.php)
    Footer
    (footer.php)
    Header
    (header.php)
    Main Index Template
    (index.php)
    Page Template
    (page.php)
    Sidebar
    (sidebar.php)
    Single Post
    (single.php)
    Theme Functions
    (functions.php)
    adsense.php
    (adsense.php)
    framework.php
    (framework.php)
    home.php
    (home.php)
    init.php
    (init.php)
    sidebar-alt.php
    (sidebar-alt.php)
    sidebar-bottom.php
    (sidebar-bottom.php)
    Styles
    Stylesheet
    (style.css)

    and my current one thats not working properally only has this…
    Templates
    Theme Functions
    (functions.php)
    adsense.php
    (adsense.php)
    home.php
    (home.php)
    sidebar-bottom.php
    (sidebar-bottom.php)
    Styles
    Stylesheet
    (style.css)

    how would that happen?

    Thread Starter bentirongym

    (@bentirongym)

    Thanks for the response aplijdi!
    Although Im still kind of confused, where and what would I place in my code? Please see below for my header.php

    <?php
    /**
    * The Header for our theme.
    *
    * Displays all of the <head> section and everything up till <div id=”main”>
    *
    * @package WordPress
    * @subpackage Twenty_Ten
    * @since Twenty Ten 1.0
    */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <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’, ‘twentyten’ ), max( $paged, $page ) );

    ?></title>
    <link rel=”profile” href=”https://gmpg.org/xfn/11&#8243; />
    <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(); ?>>
    <div id=”wrapper” class=”hfeed”>
    <div id=”header”>
    <div id=”masthead”>
    <div id=”branding” role=”banner”>
    <?php $heading_tag = ( is_home() || is_front_page() ) ? ‘h1’ : ‘div’; ?>
    <<?php echo $heading_tag; ?> id=”site-title”>
    <span>
    ” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?>
    </span>
    </<?php echo $heading_tag; ?>>
    <div id=”site-description”><?php bloginfo( ‘description’ ); ?></div>

    <?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’ );
    else : ?>
    <img src=”<?php header_image(); ?>” width=”<?php echo HEADER_IMAGE_WIDTH; ?>” height=”<?php echo HEADER_IMAGE_HEIGHT; ?>” alt=”” />
    <?php endif; ?>
    </div><!– #branding –>

    <div id=”access” 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”>“><?php _e( ‘Skip to content’, ‘twentyten’ ); ?></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><!– #access –>
    </div><!– #masthead –>
    </div><!– #header –>

    <div id=”main”>

    Thread Starter bentirongym

    (@bentirongym)

    Anybody???

    Thread Starter bentirongym

    (@bentirongym)

    Anyone? ??

    Thread Starter bentirongym

    (@bentirongym)

    https://www.bentirongym.ca
    Opps sorry guys!

Viewing 11 replies - 1 through 11 (of 11 total)