When a user clicks “Join” on mobile in the mobile menu, I want to redirect them to a registration page of my choosing.
Upon inspect element, this is what I found to be the registration link. https://www.screencast.com/t/SFGqk6v8
So I go to themes/newspaper/mobile/parts/login.php to edit this file at this location
https://www.screencast.com/t/oElykXzS)
And I make this change: https://www.screencast.com/t/xelABrxodc
But it does not work after I upload it to my website. Am I making the wrong change?
—
Do I make the change in the /menu-mobile.php file here?
https://www.screencast.com/t/N52rkf3WOymf
If so, how would I insert my href there properly?
Thanks.
Hello,
It is simpler to just use a redirect plugin instead of altering the theme code as in the next update, you will have to do it again, and again in the next update. Simply use this method: http://www.wpbeginner.com/beginners-guide/beginners-guide-to-creating-redirects-in-wordpress/
Thank you!
I want to make the changes to the child theme, when it was not working I tried it on the main newspaper theme. What code would I have to use?
Thanks Bogdan,
What would I need to insert as the source URL for a redirect when the user clicks “register” on mobile then?
Hi
To redirect the user at your login page you need to edit
top-menu.php
http://screencast.com/t/jnlmAWV6Ff with http://screencast.com/t/NvsHitsuifh
Thanks.
That is because the mobile menu is in a different par of the code. And if you use the mobile theme plugin, it will be in a different file as well.
if no mobile theme plugin is used: https://www.screencast.com/t/DqUQh1NyCxyr
if you use the mobile theme plugin: https://www.screencast.com/t/z2q6wOp2O
Thank you!
Thanks.
If no mobile theme plugin is used and I want the user to be redirected to itsahoustonthingnews.com/register, what code would I have to put?