Skip to:
Content
Pages
Categories
Search
Top
Bottom

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


  • minervaa
    Participant

    @minervaa

    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

Viewing 16 replies - 1 through 16 (of 16 total)

  • minervaa
    Participant

    @minervaa

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


    minervaa
    Participant

    @minervaa

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


    mr_pelle
    Participant

    @mr_pelle

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

    Just check if bb_is_front(). =)


    mr_pelle
    Participant

    @mr_pelle

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

    Just check if bb_is_front(). =)


    minervaa
    Participant

    @minervaa

    hi,

    where shall I look at?

    Thanks


    minervaa
    Participant

    @minervaa

    hi,

    where shall I look at?

    Thanks


    mr_pelle
    Participant

    @mr_pelle

    Something like this:

    <?php if ( bb_is_front() ) : ?>
    <meta name="description" content="bla bla bla" />
    <?php endif; ?>


    mr_pelle
    Participant

    @mr_pelle

    Something like this:

    <?php if ( bb_is_front() ) : ?>
    <meta name="description" content="bla bla bla" />
    <?php endif; ?>


    minervaa
    Participant

    @minervaa

    No the index.php file don’t have this. shall i just paste this with the description on the forum index page?


    minervaa
    Participant

    @minervaa

    No the index.php file don’t have this. shall i just paste this with the description on the forum index page?


    bbpressmodifier
    Member

    @bbpressmodifier

    Hi mr_pelle,

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

    “bbpressbb-templateskakumeifront-page.php”

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

    “bbpressbb-templateskakumeiheader.php”

    Regards


    bbpressmodifier
    Member

    @bbpressmodifier

    Hi mr_pelle,

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

    “bbpressbb-templateskakumeifront-page.php”

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

    “bbpressbb-templateskakumeiheader.php”

    Regards


    minervaa
    Participant

    @minervaa

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


    minervaa
    Participant

    @minervaa

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

    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?

    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?

Viewing 16 replies - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.
Skip to toolbar