Forums

How to change that 'name' variable? (4 posts)

  1. pressor771
    Member
    Posted 1 year ago #

    name <?php bloginfo('name'); ?>
    As mentioned, this displays the name of the site and is set by the administrator in the Options > General SubPanel by default.

    It's a Quote from THE codex.

    So how to change that damn thing?

    And i don't want to change it in the general settings... because i ain't using it...

    From what i've read the name should be very descriptive to raise the SEO value... is it true?

    Thanks.

  2. keesiemeijer
    moderator
    Posted 1 year ago #

    You change it under Settings > General. Change the "Site Title" to whatever you want.

    And i don't want to change it in the general settings... because i ain't using it...

    What are you not using?

    From what i've read the name should be very descriptive to raise the SEO value... is it true?

    Yes you should make it descriptive and maybe have some relation or resemblance with the domain name.

  3. Bill Erickson
    Member
    Posted 1 year ago #

    I don't understand why you don't want to change it in Settings > General, but I'll show you how.

    You're supposed to set your site title and description in Settings > General. Then, SEO and other plugins can use filters to modify those if needed. Here's a filter that changes the site title to "New Site Name"

    function replace_name($name) {
    $name = 'New Site Name';
    return $name;
    }
    add_filter('option_blogname','replace_name');

    Note that the old site title will still show up in Settings > General.

    Another method would be to edit it directly in the database. In the table [table_prefix]options (by default wp_options), look for the option_name "blogname". The option value displays the site name. Changing this will update the site name in Settings > General.

    One more time, the text boxes in Settings > General are designed so that you DON'T have to go through these methods.

  4. pressor771
    Member
    Posted 1 year ago #

    Thanks Billerickson. It's just that i am not building a regular blog... I am not using a title but the header instead.

Topic Closed

This topic has been closed to new replies.

About this Topic