Tag Info

New answers tagged

2

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 ...


0

If you check the Codex, the use of get_bloginfo() for certain parameters is discouraged: 'stylesheet_url' - Returns the primary CSS (usually style.css) file URL of the active theme. Consider using get_stylesheet_uri() instead. 'stylesheet_directory' - Returns the stylesheet directory URL of the active theme. (Was a local path in earlier WordPress ...


0

If you look at the source for get_bloginfo, all it is doing is calling get_template_directory_uri when it is passed the argument template_directory or template_url. Note that get_template_directory_uri is the function for getting the URL whereas get_template_directory is the function for getting the path. bloginfo('template_directory') and ...



Top 50 recent answers are included