Info
- 10 posts
- 5 voices
- Started 1 year ago by minervaa
- Latest reply from davidlb
- This topic is not resolved
Where to put custom meta description on the forum home page?
-
- Posted 1 year ago #
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
-
- Posted 1 year ago #
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 -
- Posted 1 year ago #
Any mods around? could you please delete the post by wercd? It seems Akismet having a break.
-
- Posted 1 year ago #
Does anyone how to insert meta description only on the home page?
Just check if
bb_is_front(). =) -
- Posted 1 year ago #
hi,
where shall I look at?
Thanks
-
- Posted 1 year ago #
Something like this:
<?php if ( bb_is_front() ) : ?> <meta name="description" content="bla bla bla" /> <?php endif; ?> -
- Posted 1 year ago #
No the index.php file don't have this. shall i just paste this with the description on the forum index page?
-
- Posted 1 year ago #
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
-
- Posted 1 year ago #
where in front-page.php you should enter meta description?
-
- Posted 1 year ago #
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?
-
You must log in to post.