WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Remove Blog Name from Top of First Page? (9 posts)

  1. lmcfrp
    Member
    Posted 1 year ago #

    I want to see if its possible to remove the blog name from the top of the first page. I have a graphic with my blog name which I am using as the graphic banner on the front page, so it looks silly to have the name AND the graphic name... (you can see it here: http://miamifrp.com/ )

    Is it possible to remove the name from the top?

  2. Aaron
    Member
    Posted 1 year ago #

    Open header.php and find

    <h1 id="site-title"><span><a href="http://miamifrp.com/" title="Linda's Paralegal Resources" rel="home">Linda's Paralegal Resources</a></span></h1>

    and delete it. Or comment it out by pasting in

    <!--<h1 id="site-title"><span><a href="http://miamifrp.com/" title="Linda's Paralegal Resources" rel="home">Linda's Paralegal Resources</a></span></h1>-->

  3. jnhghy
    Member
    Posted 1 year ago #

    If you want to remove the Blog name from the first page only then you need to use a php verification if the current page is home the code will be:

    <?php if(is_home()) : ?>
    <!-- display your graphic -->
    <?php else : ?>
    <h1 id="site-title"><span><a href="http://miamifrp.com/" title="Linda's Paralegal Resources" rel="home">Linda's Paralegal Resources</a></span></h1>
    <?php endif; ?>

    Try this :)
    Regards

  4. Hi Linda,

    There's no need to edit any template files using the Weaver II theme you're using: look in the theme options under "Header", and check the box that says "Hide the site title/description".

  5. lmcfrp
    Member
    Posted 1 year ago #

    Thanks wbbum and jnhghy - giving it a try now.

    Thanks Amy - actually under Theme Options > Header > the only options it gives me is to remove the header IMAGE or re-set the image... no option to remove the site title/description/name etc... I checked there before I came here because I figured that would be the obvious solution but no go...

  6. jnhghy
    Member
    Posted 1 year ago #

    So what are you exactly trying to obtain? you want to remove the blog name from the first page? or do you want to remove it all the pages of your site?

    My above code is removing the blogname only from the Home page and displaying it in the other pages if this is not what you want you can use the first code solution.
    Have a nice one!

  7. lmcfrp
    Member
    Posted 1 year ago #

    From all pages...

    Thanks for your help jnhghy

  8. lmcfrp
    Member
    Posted 1 year ago #

    Thanks wpbum - my code looked a little different but I was able to snip snip and get the right line out... thank you!

  9. Shane G.
    Member
    Posted 1 year ago #

    Hi!

    You can remove the header text "Linda's Paralegal Resources" by just removing following Code:

    <h1 id="logo-text"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>

    This code will be in header.php file of your theme.

    Regards.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.