-
Author
-
October 18, 2015 at 05:22 #82984StephanusParticipant
I’m trying to add a meta description to my home page (which is basically my blog, i.e. under ‘Reading Settings’, I’ve set my front page to display my latest blog posts) but I can’t figure out where/how to do this. As you can see in the attached screenshot, my home page only shows my Site Title and Tagline (which I’ve set under the General Settings).
Please help.
Thank you.
Stephanus
Attachments:
You must be logged in to view attached files.October 18, 2015 at 17:33 #83027sharmstrModeratorMost of us use Yoast SEO for that sort of stuff, but you can try this instead…
COPY CODEadd_action( 'wp_head', 'gen_meta_desc' ); function gen_meta_desc() { if ( is_home() ) { echo "<meta name='description' content='This is my custom description.' />"; } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
October 19, 2015 at 18:56 #83207sharmstrModeratorThe code goes in your child theme’s functions.php file.
Refer to the yoast documentation.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
October 29, 2015 at 18:46 #84921sharmstrModeratorHey Stephanus – As mentioned, its in the Yoast documentation: http://kb.yoast.com/article/146-yoast-wordpress-seo-titles-metas-template-variables
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
You must be logged in to reply to this topic.