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

samedi 12 novembre 2016

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.







How to create link with hover image in plain CSS



alt="How to create link with hover image in plain CSS" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2009/10/hover-css-skill-500x312_c.jpg" />

style="line-height: 1.5em;">What’s a hover?style="line-height: 1.5em;"> style="line-height: 1.5em;">Definition quoted from style="line-height: 1.5em;" href="http://www.uwstout.edu/soe/profdev/advwebdesign/two/glossary.html">UWStout.edustyle="line-height: 1.5em;">:

‘Hover’ is an effect that occurs when you place the cursor over a link of any kind. The link can be coded to respond to the hover by changing color, showing a new graphic, or even playing a sound file.

The hover effect improves web usability and helps web owners to direct their web traffics. When you wish your web users to pay extra attention to a special link, a good way to do so is to create a link with attractive hover effect. A simple hover effect href="#">like this (a simple underline and change of text color) indicates those text are ‘click-able’ and improves web interactions. However, changing text color and styles (underline/overline/bold) is very basics and there are a lot more can be done with hover.

In this article, I’m going to show how you can create good looking links with hover effect.

Example 1: Link with hover button

First, a look at the working example (place mouse over the link to see how it works – change of icon at the side).

class="x">href="#">Example 1 – Link with hover button image

This is the completed version of what will be built in this example.

How we create it in plain CSS?

The Button Image

Step 1, as you can see, we need a arrow icons in two different versions. In our example, I used red (#CC3300) as the default link button; and grey (#333333) for the hover effect. Such button can be easily made using any image editing software.

We now have the red color button (say, b1.png) and the rey color (button say, b2.png). Merge these two into one image file with b1.png on top of b2.png. This will be our final image for the link. Name it (say, x.png) and upload the desired location (for my case, I placed it in my WP template folder).

For your reference:

b1.png alt="" src="http://www.webhostingsecretrevealed.net/images/2009/1020-1.jpg" /> , b2.png alt="" src="http://www.webhostingsecretrevealed.net/images/2009/1020-2.jpg" /> , and x.png alt="" src="http://www.webhostingsecretrevealed.net/images/2009/1020-3.jpg" />

The CSS Code

Next, on the CSS code. Basically what we want to achieve is to indent the link text slightly to the right to make space for the button; and in the same time, display a different image when the link is in hover state. These are pretty fundamental stuffs except that we need a little twist on the background position. The trick is to show the top part of the image (the red button) for the original link; and when hover, displace the background image with a -11px (it might differs on your website) margin to show the grey button.

.x a {
color: #cc3300;
padding-left: 14px;
font-weight: bold;
background-image: url(images/x.png);
background-position: 0 2px;
background-repeat: no-repeat;
}
.x a:hover {
color: #333333;
padding-left: 14px;
font-weight: bold;
background-image: url(images/x.png);
background-position: 0 -11px;
background-repeat: no-repeat;
}

Implementation

To show off this hover effect, simply insert class x into the designated area. Here’s an example on how you can do it.

<p class='x'><a href="http://www.webhostingsecretrevealed.com">Homepage</a></p>

Example 2: Link in hover background

With the same concept, there are endless ways you can make your links look cool. Here’s another example on what we can do with the hover effects with a slightly different method. Again, have a look on the finished version.

class="y" href="#">Example 2 – Link in hover background

In this example, what I will do is to create a button-liked hyperlink where the background will change when users place their mouse over it.

How we create it in plain CSS?

The background images

First, create two images of rounded rectangle. For demonstration purpose, we will not merge these two images in this example. We’ll name the red (#CC3300) rectangle as b1.png; and the maroon (#9F2800) rectangle as b2.png.

alt="" src="http://www.webhostingsecretrevealed.net/images/home/b1.png" />

alt="" src="http://www.webhostingsecretrevealed.net/images/home/b2.png" />

The CSS Code

Next, here are the codes for your style sheet (we are naming the class ‘y’ in this second example).

a.y {
width: 280px;
height: 42px;
color: #000000;
padding: 10px;
text-decoration:none;
display: block;
font-weight: bold;
background-image : url(images/b1.png);
background-repeat: no-repeat;
}
a.y:hover {
width: 280px;
height: 42px;
color: #FFFFFF;
padding: 10px;
font-weight: bold;
text-decoration:none;
display: block;
background-image : url(images/b2.png);
background-repeat: no-repeat;
}

Implementation

To display the link, simple insert the class (y) into the <a href> tag in your source code. Example:

<a href="http://www.webhostingsecretrevealed.com" class="y" >Homepage</a>

Wrapping up

I hope this article brought you valuable information and inspired some of you to use CSS in an creative way. If there’s any other points you think I should add in this guide, feel free to leave your ideas in the comment section.

More CSS tutorials

If you like this post, be sure to also check outhref="http://www.webhostingsecretrevealed.net/blog/web-design/30-latest-css3-tutorials-you-probably-have-not-read-before/"> How to make good use of  CSS 3 animations, href="http://www.webhostingsecretrevealed.net/blog/web-design/30-latest-css3-tutorials-you-probably-have-not-read-before/">Must Read CSS 3 Tutorials 2012, as well as href="http://www.webhostingsecretrevealed.net/blog/featured-articles/make-your-webite-beautiful-20-must-read-css3-tutorials/">Make your site cool with these CSS 3 techniques.


Page 30 – Web Hosting Secret Revealed