Any mods around? could you please delete the post by wercd? It seems Akismet having a break.
Any mods around? could you please delete the post by wercd? It seems Akismet having a break.
Does anyone how to insert meta description only on the home page?
Just check if bb_is_front()
.
Does anyone how to insert meta description only on the home page?
Just check if bb_is_front()
.
Something like this:
<?php if ( bb_is_front() ) : ?>
<meta name="description" content="bla bla bla" />
<?php endif; ?>
Something like this:
<?php if ( bb_is_front() ) : ?>
<meta name="description" content="bla bla bla" />
<?php endif; ?>
No the index.php file don’t have this. shall i just paste this with the description on the forum index page?
No the index.php file don’t have this. shall i just paste this with the description on the forum index page?
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
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
where in front-page.php you should enter meta description?
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?