Forum replies created
Hi Evgeny,
Thank you for your excellent support so far.
Following on from my last query, I’m hoping to use wp_ redirect(home _url) to control page access and what happens to non registered members.
The function:
// Restrict non logged users to certain pages
function redirect_to_welcome_page() {
if ( is_page(‘welcome’) || is_page(‘contact’) || is_page(‘about_us’) || is_page(‘login’) || is_page(‘register’) && !is_user_logged_in());
wp_redirect(home_url( ), ‘302’ );
exit( );
}
add_action(‘init’ , ‘redirect_to_welcome_page’);
This just produces the error ‘too many redirects’ no matter what I try.
Using the process of elimination on plugins and themes, there appears to be a conflict with the evolve plus theme, but I could be wrong.
Any help in suggesting how I can get this function to work without redirect errors would be very much appreciated.
Thank you
Hi Evgeny,
Sorry to be a nuisance, but all I got in the screen shot was ‘
’. Unless I’m doing something wrong, I presume that there should be another image.
Thank you
Hi Evgeny,
Apologies for the late reply.
Thanks for your response, the menu titles now work.
One last question:
How can I add simple formatting such as line break and text color to the menu title. Adding <br/> for example just gets stripped or is ignored.
Thank you
Hi Evgeny,
Apologies for the late reply.
Thanks for your response, the menu titles now work.
One last question:
How can I add simple formatting such as line break and text color to the menu title. Adding <br/> for example just gets stripped or is ignored.
Thank you
Hi Evgeny,
Thanks for stating the obvious thing that I should have tried, clearing the cache. Its now working as it should.
Thank you for your help
Same here, pressed CTRL+ft about 5 times ‘et voila’ Gutenberg works as it should do.
Evgeny, you commented on me using Evolve and not Evolve plus. I tried upgrading to ‘Plus’ on my present site and as a result I lost all the Additional css and my front page went all haywire so I reverted back to Evolve not Plus. Still good enough for this particular site.
Some notes:
After having disabled all plugins, cleared the cache (CTRL+f5) and ensured my php version is 7.3 the problem still persists. Changing the theme to 2020 allows the Gutenberg editor to work as it should.
I can provide you with login details if you wish
For what its worth, I too have severe problems since upgrading to WP 5.6 in as much as I cannot use the Gutenberg sditor, its just a white page with the following error report:
The editor has encountered an unexpected error.
Attempt Recovery
Copy Post Text
Copy Error
Visiting: https://reactjs.org/ (https://reactjs.org/docs/error-decoder.html?invariant=130&args%5B%5D=undefined&args%5B%5D=) provides the full error as: ‘Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.’
Also Another odd quirk: when clicking on ‘Quick Edit’ in the dashboard list of pages, instead of going to Quick Edit the page disappears until the listing is refreshed.
I hope this might help resolve the problem