Forums

BLOG TITLE- Where is it stored, please? (4 posts)

  1. gcpicken
    Member
    Posted 2 years ago #

    Hi. I need to add some code for a "superscript" to my Blog Title. On page titles, I was able to add <sup>SM</sup></span> right in the Page Title line, but that does not work with the Blog Title (so it seems). So I was hoping to find the Blog Title somewhere and insert the code there. I am very new to this, so I'm sorry if this is too basic. I have looked around in a lot of files and did some googling--so I at least tried before asking. Thanks.

    Greg

  2. viceng
    Member
    Posted 2 years ago #

    the blog title is the general settings section of your dashboard

  3. ClaytonJames
    Member
    Posted 2 years ago #

    You can give this a try. Open header.php of the OminBlock theme and find this line:

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

    change it to:

    <h1><a href="<?php echo get_option('home'); ?>/"><?php echo ('yourblogname <sup>SM</sup>'); ?></a></h1>

    Or whatever variation of that will work for you. Although that doesn't look very clean to me it works. Perhaps someone else will have a different thought on it.

  4. Edward Caissie
    Member
    Posted 2 years ago #

    The text of the title can be found in the General Settings as @viceng pointed out, but it looks more like you want to add HTML to your theme in the form of <sup></sup>.

    If that is the case you will likely need to look in your header.php file for a bit of code that resembles this, for example:

    <?php bloginfo('name'); ?>

    Then you can add your own "code" as you see fit. Following your OP:

    <span><sup><?php bloginfo('name'); ?></sup></span>

    Hope that points you in the right direction ...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.