The meta description isn’t part of the Twenty Fifteen theme.
You mentioned the Yoast plugin in a previous question yesterday, so I guess the meta description comes from there.
According to their API page, there’s a filter called wpseo_metadesc
that might be what you’re looking for.
Here’s an untested example:
/**
* Change the Yoast meta description for Android devices on the front/home page.
*/
add_filter( 'wpseo_metadesc', function( $description )
{
return
( is_front_page() || is_home() )
&& isset( $_SERVER['HTTP_USER_AGENT'] )
&& false !== stripos( $_SERVER['HTTP_USER_AGENT'], 'android' )
? 'Some Android description!'
: $description;
}, PHP_INT_MAX );
Related Posts:
- How to display a user’s bio (not the author or logged in user)
- How to fix a duplicated meta description?
- wp_insert_term does not insert description. [closed]
- Garbage code showing up in search result post descriptions
- How do I urlencode() the blog description?
- How can get Woocommerce product single description
- How do you change the site preview description/thumbnail
- Trying to update the meta description of the home page
- How strip the quotation from the meta descrption?
- HTML code in WordPress menu description
- get meta description of rank math in single post for schema
- get_template_directory() vs bloginfo( ‘template_directory’ ) vs TEMPLATEPATH
- What is difference between get_bloginfo(‘url’) and get_site_url()?
- From a security standpoint, should bloginfo() or get_bloginfo() be escaped?
- Remove the category/taxonomy description field?
- How do I change the login logo URL and hover title?
- Admin Filter – Add Post Type Description on Post Type Page
- Is there a blog info object?
- bloginfo(‘stylesheet_directory’) vs. get_stylesheet_directory_uri() and include(‘file.php’) vs. get_template_part()
- show term description instead of list terms of custom taxonomy
- Filter the blog’s title without using global variables
- Show Subcategory Description
- How to use different short description in shop page and in product page in woocommerce
- How to use bloginfo( ‘template_directory’ ) in array
- Is it possible to change the template_directory?
- How to display a description of a given category from a custom taxonomy
- Adding a video description in a similar way to a image caption
- How come my first blog post and my home page have the same title?
- Customized title tag for each page in pagination?
- Why doesn’t YoastSEO allow me to set the title/description for the home page? [closed]
- bloginfo(‘template_directory’) img src
- Get custom taxonomy description with paragraph tags
- php syntax – how to concatenate properly – echo bloginfo(‘stylesheet_directory)
- Change Site Title and Description html tags if not home page
- Change description on specific WooCommerce product status change
- How can I use get_bloginfo(‘admin_email’) in a custom PHP file?
- Get meta data from image
- How to automatically remove links from WordPress Biographical Info?
- HTML tags in bloginfo description
- Showing image description along with embedded links below post images
- sprintf bloginfo odditie
- How to modify an existing meta description?
- Admin Filter – Add Post Type Description on Post Type Page
- How can I add an area/option for a custom page description?
- My “Description” in gallery doesn’t accept formatting/html
- Access bloginfo, get_option, and plugins_url from a non-core php file
- Change “en-US” to “en”
- Where does Yoast SEO plugin sets the site/page title?
- if not empty bloginfo(‘description’)
- Display a tag only if there is a description
- Clean links in: the_author_meta(‘description’)
- Display site description instead of site name
- Form action unfamiliar
- Should I use get_bloginfo(‘stylesheet_directory’) or get_stylesheet_directory_uri() when enqueueing my js files?
- WordPress address URL and bloginfo
- “Item not updated” when try to change category properties
- Wp Enviroment problem with included file
- how to remove description from menu buttons?
- How to set the meta description of a WooCommerce product as its primary category description?
- WordPress Show Parent Category Description for Sub-categories
- How to Get The Excerpt of the page that displays Blog Posts
- how to hide empty fields of post category description?
- How to display featured image description and title?
- Split site title and apply different classes
- How to get rid of Ellipsis on Woocommerce [Essential] Theme [closed]
- Set up description meta automatically
- How Can I limit the visible part of the short-description on the Category page?
- How to add description over forum list on bbpress root page
- How to set base url for php widget
- How do I begin debugging where the description meta tag is set for my categories?
- Bloginfo hook – can it be more precise?
- Change wordpress meta tag description using WP functions
- WordPress function bloginfo not echoing output on parts of the pages
- Header Link function not working. Problem with bloginfo()
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Inconsistent bloginfo information
- Add Custom Category Description When Empty
- How to test If a post has a particular term
- I have a background-image in css file but don’t show in site.how to fix this prblm. i sent screenshot. thx
- add woocommerce archive description if exist
- How to prevent tag “iframe” from being deleted from the heading description of rubric?
- How can I remove the product short description from the WooCommerce Mails?
- Limit user description length in characters
- How Can I Display the Category Description in a Theme with no Category.php or Archive.php?
- Line break description wordpress
- Get Term ID by Description
- Reorder title tag and description tag with wpseo_title and wpseo_metadesc
- View tag description on page
- WPML – Auto Duplicate Post Issue
- Correct way to hardcode an image into a parent theme file?
- Pass $item->description to start_lvl
- How can I include a file related to blog URL? Nothing seems to work
- How add short description Featured Products or Related Products
- Add Placeholder in WordPress Editor Content Box
- Insert term description programmatically into hierarchical custom taxonomy
- Display term description on hover using get_the_term_list
- Allowing users to add HTML to BP Groups Description how can I error check html of users? [closed]
- Description of a sub-taxonomy
- Show Site Name on WP login screen
- how can i load svg image with get_template_directory_uri() or bloginfo(‘template_url’)