This message pop up at dashboard "Your website URL has recently been changed. Automatic payments and customer emails have been disabled to prevent live transactions originating from development or staging servers." As i am new in this field so i don't have any idea what should i do to solve this. … [Read more...] about tried putting this <link rel="canonical" href="https://www.example.com”> as canonical tag
Remove_actionwp_head rel_canonical
How-To and Troubleshooting Canonical Links for Paginated Comments
It seems that when you paginate comments, the additional pages don't have their canonical links point back to the original page. This would seem to lead to duplicate content issues (i.e. same post, just different comments on p.2, p.3, etc.). For example, on the first page of the post, the canonical link looks like this: <link rel='canonical' href='http://mysite.com/uncategorized/my-post/' /> When I paginate the comments, however, I now have multiple pages. I would like all of those pages to point back to the original page. Instead, they look like this: <link rel='canonical' href='http://mysite.com/uncategorized/my-post/comment-page-2/#comments' /> I did find some code I thought might do the trick, but it didn't. (Maybe it's old.) Here's the code I found: function canonical_for_comments() { global $cpage, $post; if ( $cpage > 1 ) : echo "\n"; echo "<link rel='canonical' href='"; echo get_permalink( $post->ID ); echo "' />\n"; endif; } add_action( 'wp_head', … [Read more...] about How-To and Troubleshooting Canonical Links for Paginated Comments
Edit title-tag in wp_head with yoast seo
I want to manipulate the html-title tag, so <title> these not the content of the title-tag! I use child-themes and it's inevitable, because the template have to be easy to update. So I have to use the functions.php or the header.php in the child-folder. At moment I try it with the functions.php At moment I have following situation: <!-- Start WP_HEAD ================================================== --> <!-- This site is optimized with the Yoast WordPress SEO plugin v1.5.3.3 - https://yoast.com/wordpress/plugins/seo/ --> <title>My awesome title-content</title> <meta name="robots" content="noindex,follow,noodp,noydir"/> <link rel="canonical" href="WEBSITE" /> <meta property="og:locale" content="de_DE" /> and I want to have these situation: The focus are on the title-tag <!-- Start WP_HEAD ================================================== --> <!-- This site is optimized with the Yoast WordPress SEO plugin v1.5.3.3 - … [Read more...] about Edit title-tag in wp_head with yoast seo
Remove an action from an external Class
I'm trying to do something similar to this question here: remove_action or remove_filter with external classes? I'm trying to remove the <!-- This site is optimized with the Yoast WordPress SEO plugin v1.0.3 - http;//yoast.com/wordpress/seo/ --> message from the plugin. And before you yell at me about how this may be unethical the author says it's okay to do here: http://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-how-to-remove-dangerous-inserted-yoast-message-in-page-headers?replies=29#post-2503475 I have found the class that adds the comment here: http://plugins.svn.wordpress.org/wordpress-seo/tags/1.2.8.7/frontend/class-frontend.php Basically the WPSEO_Frontend class has a function named debug_marker which is then called by a function named head which is then added to wp_head in __Construct I'm new to classes but I found a way to completely remove the head by doing global $wpseo_front; remove_action( 'wp_head', array($wpseo_front,'head'), 1, 1 ); but I … [Read more...] about Remove an action from an external Class
How to remove “prev, next, shortlink” from wp_head()?
I'm using these filters to clean the head of my theme: remove_action('wp_head', 'wp_generator'); remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'feed_links', 2); remove_action('wp_head', 'index_rel_link'); remove_action('wp_head', 'wlwmanifest_link'); remove_action('wp_head', 'feed_links_extra', 3); remove_action('wp_head', 'start_post_rel_link', 10, 0); remove_action('wp_head', 'parent_post_rel_link', 10, 0); remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0); remove_action('wp_head', 'locale_stylesheet'); remove_action('wp_head', 'noindex'); remove_action('wp_head', 'wp_print_styles'); remove_action('wp_head', 'wp_print_head_scripts'); However, I can't seem to get rid of these: <link rel='prev' title='Top Menu Item 1' href='http://localhost/test/test-prev.html' /> <link rel='next' title='Internal title test default title' href='http://localhost/test/text-next.html' /> <link rel='shortlink' href='http://localhost/test/?p=528' /> … [Read more...] about How to remove “prev, next, shortlink” from wp_head()?