Forum replies created

    Michael Sinclair
    Participant
    Posts: 30
    July 24, 2024 at 4:14 pm #49504

    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

    Michael Sinclair
    Participant
    Posts: 30
    April 30, 2024 at 10:57 pm #49386

    Hi Evgeny,
    Sorry to be a nuisance, but all I got in the screen shot was ‘&#10’. Unless I’m doing something wrong, I presume that there should be another image.
    Thank you

    Michael Sinclair
    Participant
    Posts: 30
    April 29, 2024 at 12:43 pm #49383

    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

    Michael Sinclair
    Participant
    Posts: 30
    April 29, 2024 at 12:43 pm #49382

    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

    Michael Sinclair
    Participant
    Posts: 30
    February 10, 2022 at 9:55 pm #47783

    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

    Michael Sinclair
    Participant
    Posts: 30
    December 13, 2020 at 10:50 pm #45612

    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.

    Michael Sinclair
    Participant
    Posts: 30
    December 11, 2020 at 9:51 pm #45603

    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

    Michael Sinclair
    Participant
    Posts: 30
    December 11, 2020 at 9:05 pm #45602

    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

    Michael Sinclair
    Participant
    Posts: 30
    November 8, 2020 at 9:57 pm #45464
    This reply has been marked as private.
    Michael Sinclair
    Participant
    Posts: 30
    November 8, 2020 at 9:54 pm #45463
    This reply has been marked as private.