adsense

How to Change a Login Redirect in WordPress





1. Log into the WordPress dashboard from the wp-admin directory of your website. Hover over 'Appearance' on the left side of the screen and click 'Editor' to load the 'Edit Themes' screen.
2. Determine which file you need to open to change your login redirect. In most cases your theme will contain a login link in the comments.php template file only, unless you added a link to another template. Find the file in the list on the right side of the 'Edit Themes' screen and click its link.

3. Find the following code or code similar to it:
By default, logging in takes the user back to the main blog index or front page, depending on your WordPress settings.
4. Add a full URL path between the parentheses, or include another template tag like get_permalink() to change where the login will redirect the user. It looks like this:
This code takes the user back to the original page on which he clicked the link to log in. Click the blue 'Update File' page to save your changes.

Comments

0 Responses to "How to Change a Login Redirect in WordPress"

Post a Comment

Popular Posts

About