Hello
Before updating to the last version of the theme, I want to know the folder, name and lines where I can fin the link to a member profile when is log.
On our site it has to point to this adress
https://www.virtualmagie.com/profil/
Could I have the information for computer and mobile please?
Regards
Hello !
So you want to redirect the user after the login happens, you could check some online topics, there are even plugins for that it seems:
– https://www.google.ro/search?q=wordpress+redirect+after+login&oq=wordpress+redirect+after+login&aqs=chrome..69i57j0l5.7277j0j7&sourceid=chrome&ie=UTF-8
Thank you !
Hello Vlad
Maybe I was not clear.
We don’t want to do a redirection but change the URL.
In Newspaper theme, when your log, your name appears.
For now we still have to change in some Newspaper theme files the link.
A dev did for me but didn’t give me the info.
After the last update the link in the computer theme is still ok and send to the right URL /profil.
But not in the mobile version (notice we don’t have the Newspaper mobile plugin activate).
So my question is : I want to do the last update.
After that both links will no more send to /profil
Could you please tell me which 2 files I have to change ? In which folders and at what lines ?
Thanks
Hello !
The link is this: get_author_posts_url
You will have to replace it in every file that contains this link. We have used the PHP Storm app to see some of the files: https://www.screencast.com/t/EKjpt6WnPhp
Also find out more about it here: https://developer.wordpress.org/reference/functions/get_author_posts_url/
Hello !
What you are trying to achieve requires custom work which is not covered by the support team: https://tagdiv.com/newspaper-theme-support/ The editing of those files require coding skills so we do recommend hiring a freelancer for a job like this due to the number of implications and lines that need modification.
Thank you for your understanding !
Sorry but I don’t understand.
For years we change this 2 links in your theme.
It was quiet simple: open 2 files and replace some code by /profil
But till last update your regulary change the place of this code and files!
I only asking to have the name and place of the 2 files I have to edit to impact the change in the mobile and computer mobile.
Thanks
It was a other persons who did it and didn’t give me the info. 🙁
I update the site yesterday.
When you log now when you click on your name the site goes to the https://www.virtualmagie.com/author/thomas-4/
And need that it go always for all people to https://www.virtualmagie.com/profil
How I can achieve that?
Regards
I found 2 files:
– wp_content/plugins/td-composer/mobile/parts/logged.php
I change and all is OK in mobile version :
<code><div class="td-menu-username"><a>ID) . '" class="td_user_logd_in">' . $current_user->display_name . '</a></div>
to
<div class="td-menu-username"><a href="https://www.virtualmagie.com/profil">' . $current_user->display_name . '</a></div>
– wp_content/plugins/td-composer/legacy/Newspaper/parts/logged.php
I change and it didn’t change the link. 🙁
Don’t know if it change with the 10th theme version?
What file do I have to edit?
-
This reply was modified 6 years by
Thomas.
Hello !
Yes, you have to make this change in newspaper X and for desktop you have this path: https://www.screencast.com/t/C51Eym8u
Thank you !
Hello Vlad
Like I wrote previously:
– wp_content/plugins/td-composer/legacy/Newspaper/parts/logged.php
I change and it didn’t change the link. ?
I Just check and the line is the same than in the mobile version.
<?php
//get current logd in user data
global $current_user;
echo '
<div class="td-logged-wrap">
<div class="td-menu-avatar"><div class="td-avatar-container">' . get_avatar($current_user->ID, 80) . '</div></div>
<div class="td-menu-username"><a href="https://www.virtualmagie.com/profil">' . $current_user->display_name . '</a></div>
<div class="td-menu-logout"><a href="' . wp_logout_url(home_url( '/' )) . '">' . __td('Logout', TD_THEME_NAME) . '</a></div>
</div>
On mobile it works but not on computer.
Any idea why?
-
This reply was modified 6 years by
Thomas.
Hello !
It may be cached, But as mentioned above, please note that this is a custom work request. The path should be the one but code may be sprea all over the theme. Custom work is not covered by the support team and we suggest to hire a developer for this issue.
Thank you for your understanding !
Hi,
If you want to replace the url of this button -> https://i.imgur.com/kA9kuwa.png on mobile theme then you need to make the changes in this file wp-content/plugins/td-composer/mobile/parts/login.php -> https://i.imgur.com/1OwWNwH.png if you are not using the mobile theme the file sis on this path -> wp-content/plugins/td-composer/mobile/parts/login.php -> https://i.imgur.com/Vn8d3qi.png
To replace the link from this popup ->https://i.imgur.com/AalcaLI.png you need to replace it in this file wp-content/plugins/td-standard-pack/Newspaper/parts/header/top-menu.php -> https://i.imgur.com/ati1qar.png
Hope this will help!
Hello
Thanks both of you for help.
I change the info in the 2 files (login and top-menu)… and nothing change.
When I am log when I click on my name it not go to https://www.virtualmagie.com/profil/ but still to https://www.virtualmagie.com/author/thomas-4/
For:
wp-content -> plugins -> td-cloud-library -> shortcodes -> header -> tdb_header_user.php
search into that file: get_author_posts_url
I put on line 306 :
$buffy .= '<a href="https://www.virtualmagie.com/profil/">' . $current_user->display_name . '</a>';
For top-menu in line 60, i put:
echo '<ul class="top-header-menu td_ul_login"><li class="menu-item"><a href="https://virtualmagie.com/profil">' . __td('Sign in / Join', TD_THEME_NAME) . '</a><span class="td-sp-ico-login td_sp_login_ico_style"></span></li></ul>';
For login here:
<div class="td-menu-login"><a>' . __td('Sign in', TD_THEME_NAME) . '</a>' . $users_can_register_tab . '</div>
I don’t how to put the correct URL.
Thanks
-
This reply was modified 6 years by
Thomas.
Hi,
Let’s try one more time together.
In order to set on “SIGN IN / JOIN” button -> https://i.imgur.com/MOMLh9P.png the link you need to go on this file -> wp-content/plugins/td-standard-pack/Newspaper/parts/header/top-menu.php the file will look like this -> https://i.imgur.com/OZMeu9s.png -> https://i.imgur.com/Bge4quX.png the rest of the code is no need to be removed.
For mobile the changes need to be made in this file -> wp-content/plugins/td-composer/legacy/Newspaper/parts/login.php -> https://i.imgur.com/A9w20Gw.png -> https://i.imgur.com/yYIuJvZ.png also if is do not work you can set theme in this file too -> wp-content/plugins/td-composer/mobile/parts/login.php -> https://i.imgur.com/S1YKCxJ.png
Hope this will help you!
Thank you!
Hello Calin
Sorry for the late answer.
Let’s try one more time together.
In order to set on “SIGN IN / JOIN” button -> https://i.imgur.com/MOMLh9P.png the link you need to go on this file -> wp-content/plugins/td-standard-pack/Newspaper/parts/header/top-menu.php the file will look like this -> https://i.imgur.com/OZMeu9s.png -> https://i.imgur.com/Bge4quX.png the rest of the code is no need to be removed.
Thanks for the answer.
Just tried to do that.
But it seems that now when I try to login instead a pop in window it goes on the page page /profil.
Sorry but it is not what we need! 🙂
The pop in windows of the theme is perfect.
It is AFTER, when the member is ALREADY login.
For example here:

I am already login so my name appears.
I want that when I click on it, I don’t arrive on the articles I wrote: https://www.virtualmagie.com/author/thomas-4/
but on my Profile to see my informations and elements I bought in the shop: https://www.virtualmagie.com/profil (this URL is the same for eveyone).
On computer and mobile.
What files and code do we have to modify?
Regards
Hi,
Sorry about that, I think that I do not understand that request, sorry!
I think that yo are using the cloud element for login, if so, then you need to edit the file -> wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_user.php and change this link -> https://i.imgur.com/7Z6Zy3Z.png
Hope this is what you need!
Thank you!
Hi
Just change the line in:
$buffy .= '<div class="tdb-head-usr-item tdb-head-usr-avatar" style="background-image: url(' . get_avatar_url($current_user->ID, ['size' => 90]) . ')"></div>';
$buffy .= '<a href="https://www.virtualmagie.com/profil" class="tdb-head-usr-item tdb-head-usr-name">' . $current_user->display_name . '</a>';
clean the cache twice but didn’t change anything.
Maybe it is not in this file?
-
This reply was modified 5 years by
domtom.
Hi,
That file is for cloud header from tagdiv cloud library, but if you are using a standard header then indeed, you need to make these changes in another file wp-content/plugins/td-standard-pack/Newspaper/parts/header/top-menu.php -> https://i.imgur.com/Qrls4bn.png
This should display some results!
Thank you!
YESSSSSSSSSSSS
Finally it is working.
Thanks
A question : for now we use the tagDiv Standard Pack plugin.
But really want to go to the new one (not easy because don’t really work well together to test).
When we will deactivate the Standart plugin, I suppose we will have to integrate your previous change in the td-cloud-library/shortcodes/header/tdb_header_user.php file?
Hi,
On cloud templates you have more options and you can edit theme with tagDiv Composer, but for the “things” that can not be done with tagDiv Composer you need to set theme in cloud files, the problem is that for the moment the cloud files can not be set in a child theme.
Thank you!