mairh93
Forum Replies Created
-
Hello,
Unfortunaltely the php code dont work in my case for rederecting the user. I thought that the problem was with the Code snippet plug in, but I put directly your code in the function.php and nothing happens…the user continue to go to the /my-account page after the log in and not in the home page as I wanted.
Forum: Plugins
In reply to: [Code Snippets] Code Snippets plug in dont workHello,
Thank you for your time. First of all, I created one function in order to redirect the customers from account page to home page :add_filter( 'user_registration_login_redirect', function( $redirect_url, $current_user ) { $current_user = (object) $current_user; $roles = isset( $current_user->roles ) ? (array) $current_user->roles : array(); if ( in_array( 'Store Vendor', $roles, true ) ) { $redirect_url = 'https:/mysite.com/store-manager/'; } if ( in_array( 'Customer', $roles, true ) ) { $redirect_url = 'https://mysite.com/home'; } return $redirect_url; }, 10, 2 );
The 2nd function that I tried it was a simplier one, for testing purposes :
echo ‘<script>alert(“Welcome to Geeks for Geeks”)</script>’;
The 1st function (redirect) don’t work neither when I use the code snippet plug in nor when I copy paste directly the code to the function.php
The 2nd function, with the plug in don’t work either. But when I paste the code in the function.php works..
In the code snippet , the codes are activated and the run everywhere option is checked.
Let me know if you need another information to provide to you, or if there is something more that I need to check..Hello,
I have one question…the code that you provided to me works after the default use registration form ? or I need to create a custom one ?
Thank you!
Forum: Fixing WordPress
In reply to: Code Snippets plug in dont workThank you a lot !
Hello,
So after investigation, I think that the problem is in the code snippet plug in..I will check why it doesn’t work and I will try to check again your code.
Thank you for your time!
So when I log in as Store Vendor it works, as after log in I see the /store-manager page.
But, when I log in as a customer, after the log in I continue to be in the /my-account page : image below
Thank you!
- This reply was modified 2 years, 5 months ago by mairh93.
Thank you for your time..It doenst work. After the log in I see the front page and not the page that I put in the url
- This reply was modified 2 years, 5 months ago by mairh93.
Forum: Fixing WordPress
In reply to: put menu on top of the pageThank you for your answer! I went Appearance> Customize> Theme options > Header + Menu.
Now I need to have the image in full screen, but I will check it.
Hello,
Yes I have the WCFM marketplace as your link above.
The link for the images :
Thank you for your help!
This issue is not resolved yet..
Actually with the TranslatePress, I cannot translate the vendor Dashboard (the registration page of vendor, the products list etc). Is there any solution about that ?
One more thing is that I had edit the function.php in the parent theme, adding a custom code for the translation of some words. But afterwards I deleted this custom code.
The problem is that when the TranslatePress is activate I always see the words translated. When I disactivate the plug-in, the words are not translated (this is what I need, as the translation was wrong and I had the same translation switching from English to Greek..)Thank you
Hello,
Thank you for your answer. I don’t know how I could insert an image here..
What do you mean link to this plug-in ?Thank you!
- This reply was modified 2 years, 5 months ago by mairh93.
Forum: Fixing WordPress
In reply to: functions.php – translation undook I will try.
But when I add a custom code in the function.php save the changes, and after go back and delete the custom added code, and save again, I see that the changes remain. Is it normal ? Does it mean that the changes in the function.php are permanent ?
Thank you for your time!
Forum: Fixing WordPress
In reply to: functions.php – translation undoyes
Forum: Fixing WordPress
In reply to: functions.php – translation undoHello,
I have the Rehub theme and I cannot find a way to download the .zip file. Could you please provide me more details ?
Generally, I don’t know if it will helps, as I tried already to manually delete the custom code that I added in the function.php and nothing changed.
Thank you for your time!
Forum: Fixing WordPress
In reply to: functions.php – translation undoHello,
I deleted them, I published again the code, but the translation in the vendor page remains…
I had also, for test purpose, put instead of Enable Store Hours ->SS, and now as I trying to do the invert, all the SS in my side have become Enable Store Hours. For example : PaEnable Store Hoursword inseatd of Password
Do you know how I could make the translations as before editing the function.php code?
Generally, which is the best way to edit this function.php, in order to avoid the bugs like it.? It seems now that I cannot undo this function in the core .php (Apperance>Theme File Editor> Theme function
Thank you for your help!