WordPress.org

Ready to get started?Download WordPress

Forums

cannot figure out how to remove site title.. (2 posts)

  1. deltaskelta
    Member
    Posted 2 years ago #

    I can usually find these things in the themes and comment them out if the theme does not offer it directly...

    I want the title and tagline to NOT display in the header, but to still be read by search engines.

    site is: http://www.radbrains.com

    I have found this in the header.php file:

    <head>
            <meta charset="UTF-8" />
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <meta name="description" content="<?php $site_description= get_bloginfo('description', 'display'); echo $site_description; ?>">
            <meta name="author" content="<?php echo get_bloginfo('name'); ?>">
            <title><?php
            global $wordstrap_theme_options, $page, $paged;
    
            // Add wp_title ()
            wp_title( '|', true, 'right' );
    
            // Add a page number if necessary:
            if ($paged >= 2 || $page >= 2)
                echo ' | ' . sprintf(__('Page %s', 'wordstrap'), max($paged, $page));
            ?></title>

    But I am not sure if this is the right section of code to mess with...Is it and how do I do it?

  2. deltaskelta
    Member
    Posted 2 years ago #

    nvm.. I foudn it. It was in another file called "part_header.php" the theme is called wordstrap FYI and this is the code

    <hgroup class="ws-site-title">
                            <h1 id="site-title"><span><a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
                            <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
                        </hgroup>

    comment it out and you are good to go...

    One final question though...Since it still shows the title at the top of my browser window. Search engines will see it right?

    [ moderator: please don't bump ]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.