Affichage des articles dont le libellé est Text. Afficher tous les articles
Affichage des articles dont le libellé est Text. Afficher tous les articles

samedi 12 novembre 2016

How to Change the “Reply” Text in WordPress Comments



Recently, one of our users asked us how to change the ‘Reply’ text in WordPress comments. By default, most WordPress sites have a reply button below comments so that users can respond to a comment. In this article, we will show you how to easily change the “Reply” text in WordPress comments.


Changing reply text in WordPress comments


Why Change The Reply Text in WordPress Comments?


Comments are an easy way to boost user engagement. There is a lot you can do to improve WordPress comments.


For example, you can style your comment layout, change comment form style, comment text field to bottom, etc.


The reply link below a comment is like a call to action. Just like any other call for actions on your website, language, colors, size, and placement can all compel users to click.


By changing the simple boring reply to something more interesting, you can make it more prominent and attractive.


Let’s see how to easily change ‘Reply’ text in WordPress comments.


Changing ‘Reply’ Text in WordPress Comments


For this tutorial, you will need to add some code to your WordPress files. If you have not done it before, then you may want to take a look at our beginner’s guide to pasting snippets from the web into WordPress.


You need to add the following code to your theme’s functions.php file or in a site-specific plugin.


 
function wpb_comment_reply_text( $link ) {
$link = str_replace( 'Reply', 'Change to This Text', $link );
return $link;
}
add_filter( 'comment_reply_link', 'wpb_comment_reply_text' );


Don’t forget to replace ‘Change to This Text’ in the code with whatever text you want to use.


Preview of reply text changed to respond


That’s all, you can now view any post with comments on your website, and you will find the text you added instead of ‘Reply’.


We hope this article helped you change the “Reply” Text in WordPress. You may also want to try these 11 ways to get more comments on your WordPress blog posts.


If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.


The post How to Change the “Reply” Text in WordPress Comments appeared first on WPBeginner.







How to Export All WordPress URLs in Plain Text



Recently, one of our users asked us if it was possible to export all WordPress URLs in plain text or a CSV file? Sometimes you may need those URLs for migrating a website or setting up redirects. In this article, we will show you how to export all WordPress URLs in plain text.


Export all WordPress URLs in plain text


Why You May Need to Export All WordPress URLs in Plain Text?


WordPress comes with built-in tools to export content in an XML file. You can use this file to import your content into another WordPress site.


These tools allow you to move WordPress to a new domain name or transfer from local server to a live site.


However, sometimes you may need a list of URLs for a number of reasons. You may need to setup redirects to a new website. You may need to share URLs with an SEO team or setup tracking using some SEO tools.


Now that you know the use-case, let’s see how you can easily export all URLs from your WordPress site to a text file.


Exporting WordPress URLs in Text and CSV Format


First thing you need to do is install and activate the Export All URLs plugin. For more details, see our step by step guide on how to install a WordPress plugin.


Upon activation, you need to visit Settings » Export All URLs page. The plugin allows you to export URLs for all your posts, pages, and custom post types. You can also limit it to selected post types if you want.


Export all URLs settings page


You can also select what data you want to export. The plugin allows you to export URLs, title, categories. There is also an option to either export this data in a CSV file or display it right on the settings page.


Click on the ‘Export’ button to continue.


Depending on your settings, the plugin will either display the data on the plugin’s settings page or export it in a CSV file.


Exported data


CSV files are plain text files with comma separated values. You can open these files in a plain text editor. You can also open them in a spreadsheet software like Microsoft Excel, Numbers, or Google Sheets.


That’s all, we hope this article helped you learn how to export all WordPress URLs in plain text. You may also want to see our comparison of the best WordPress backup plugins to keep your content safe.


If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.


The post How to Export All WordPress URLs in Plain Text appeared first on WPBeginner.