Tag Info

New answers tagged

1

Writing a robots.txt is an easy process. Follow these simple steps: Open Notepad, Microsoft Word or any text editor and save the file as 'robots,' all lowercase, making sure to choose .txt as the file type extension (in Word, choose 'Plain Text' ). Next, add the following two lines of text to your file: User-agent: * Disallow: 'User-agent' is another ...


0

If google is showing that, then you should consider getting a solid SEO plugin (or edit your theme) and do the following: Add proper meta titles Add proper meta keywords Add proper meta descriptions Make sure you have real content in your posts Beyond that, you should check googles webmaster tools to see if you can exclude certain phrases. If the top ...


2

Thought this was a great question so I went digging. In default-filters.php on line 208 there's add_action('wp_head', 'noindex', 1); as of WordPress 4.1. The noindex() function in turn checks to see if you have set blog_public option to 0. If you have, it calls wp_no_robots() which is simply: function wp_no_robots() { echo "<meta name='robots' ...


1

I suppose this ended up working for me. I was more hoping for some kind of better filter but it works just as well. Throw this in a functions.php file and you're good to go. /** No Index No Follow Entire Website **/ function nofollow_meta() { echo "<meta name='robots' content='noindex,nofollow' />\n"; } add_action( 'wp_head', 'nofollow_meta', 1 ); ...


1

If your theme is using add_theme_support('title-tag'), then you can try the following: remove_action( 'wp_head', '_wp_render_title_tag', 1 ); and then just hook in your own modified version: add_action( 'wp_head', 'wpse_render_title_tag_with_itemprop', 1 ); function wpse_render_title_tag_with_itemprop() { if ( did_action( 'wp_head' ) || ...



Top 50 recent answers are included