Forums

[resolved] Bolding just part of the blog title (3 posts)

  1. EveryWord
    Member
    Posted 2 years ago #

    I blog (self-hosted) at http://www.ex-united.com/ . Blog title is ' « ex-United » '.

    I want to do something that should be simple, but I can't figure it out. All I want to do is modify header.php, such that the ' ex- ' portion of my blog title is bolded. That's it!

    Here's the relevant portion of my theme's header.php:
    <div class="headerleft">
    <?php if (is_home()) { ?>
    <h1>/"><?php bloginfo('name'); ?></h1>
    <?php } else { ?>
    <h4>/"><?php bloginfo('name'); ?></h4>
    <?php } ?>
    <p><?php bloginfo('description'); ?></p>
    </div>

    I've tried doing something like:
    <?php substr(bloginfo('name'),2,3) ; ?>
    ... but this didn't work.

    Can someone help?

  2. rsciw
    Member
    Posted 2 years ago #

    try via get_bloginfo();

    $blogname = get_bloginfo('name');
    print substr($blogname,2,3);

  3. EveryWord
    Member
    Posted 2 years ago #

    Worked perfectly. Thank you *very much*!

Topic Closed

This topic has been closed to new replies.

About this Topic