Forums

Join
bbPress Support ForumsTroubleshootingWhere to put custom meta description on the forum home page?

Info

Tags

Where to put custom meta description on the forum home page?

  1. Hi all,

    I am trying to insert custome meta description on the home page. Initially I was thinking I can do that manually from the index.php file but it seems different.

    Does anyone how to insert meta description only on the home page?

    I am using a plugin for the single posts, which are fine. Just need the home page.

    Thanks

  2. TR/Ag.24576.trojan is usually a standalone program that drops different type of standalone Malware (Trojan, Worms and Backdoor) to Windows system. TR/Ag.24576.trojan is an executable file that contains other files compressed inside its body.
    http://www.bestspywarescanner.net/spyware/TR/Ag.24576.trojan.html

  3. Any mods around? could you please delete the post by wercd? It seems Akismet having a break.

  4. Does anyone how to insert meta description only on the home page?

    Just check if bb_is_front(). =)

  5. hi,

    where shall I look at?

    Thanks

  6. Something like this:

    <?php if ( bb_is_front() ) : ?>
    <meta name="description" content="bla bla bla" />
    <?php endif; ?>
  7. No the index.php file don't have this. shall i just paste this with the description on the forum index page?

  8. Hi mr_pelle,

    If you want to add meta description only on homepage, then see

    "bbpress\bb-templates\kakumei\front-page.php"

    If you want to add in header for all forum, then see

    "bbpress\bb-templates\kakumei\header.php"

    Regards

  9. where in front-page.php you should enter meta description?

  10. Thanks. I added this to the header.php and ran some diagnostics.

    <meta name="description" content="<?php if ( is_single() ) {
    single_post_title('', true);
    } else {
    bloginfo('name'); echo " - "; bloginfo('description');
    }
    ?>" />

    This appears to solve my Tag Description problems, but it creates another.

    I get a php error when accessing the forum

    Fatal error: Call to undefined function is_single() in /home/xxx/public_html/Forum/bbpress/bb-templates/kakumei/header.php on line 16

    Would anyone be so kind as to help identify a work around?

  11. You must log in to post.