Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing the word blog

  • @oldskoo1

    Participant

    Hello,

    Strange request but i would like to setup a site with a more traditional diary theme.

    Therefore i would prefer to use the word diary instead of blog.

    I’m good with php so i can go in and edit code but before i do, does anyone know of any hooks anywhere where i could change the words around? I doubt there is.

    So if not, which files should i look at to change for example, the blog directory pages, the top menu buddypress bar, profile page etc.

    If you could point me in the right direction i can figure it out from there. Ideally i was looking for a way to preg_match or str_replace before it is outputted to the screen but i don’t think i could do this.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Inactive

    I am also interested in a way to change “Blogs” to something else. It is easy editing the core code, but I would rather not do that. Any ideas?

    @felix2009

    Participant

    In youre: “header.php”

    <?php if ( function_exists( ‘bp_blogs_install’ ) ) { ?>

    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) {?> class=”selected”<?php } ?>>/<?php echo BP_BLOGS_SLUG ?>” title=”<?php _e( ‘Blogs’, ‘buddypress’ ) ?>”><?php _e( ‘Blogs’, ‘buddypress’ ) ?>

    <?php } ?>

    Changes the phrase: “Blogs” into: “what ever you want” …

    @djpaul

    Keymaster

    Or make bp-custom.php into your /plugins/buddypress/ folder, and put the following code in. This way saves you messing with the default themes and also having to re-do work if you change themes in future.

    <?php
    define('BP_BLOGS_SLUG', 'Diary');
    ?>

    @djpaul

    Keymaster

    BUMP: I’ve been told I’m talking nonsense. I thought you could override the constant? Could someone clarify.

    @djpaul

    Keymaster

    BUMP

    @johnjamesjacoby

    Keymaster

    To change the SLUG of the URL itself, you’d probably want to use:

    <?php
    define('BP_BLOGS_SLUG', 'diary');
    ?>

    Then you would want to edit the header.php file and change the word in your navigation.

    Check Customizing Labels, Messages, and URLs in the codex for a complete description.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing the word blog’ is closed to new replies.
Skip to toolbar