Forum replies created

    Evgeny
    Keymaster
    Posts: 997
    July 25, 2024 at 11:15 am #49509

    Oh, and btw, the single quotes are wrong here, but it is because of the forum’s output. You will need to adapt them to standard in your code.

    Evgeny
    Keymaster
    Posts: 997
    July 25, 2024 at 11:14 am #49508

    Hi,
    Please allow me to offer some insights into your code. I see some things that might cause it to work differently than you expect.

    First, the full version of the code how I suggest to implement it:
    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’);

    The differences:
    1. Your if() statement has a precedence issue. && has a higher precedence than ||, so your code works like this:

    if ( is_page(‘welcome’) || is_page(‘contact’) || is_page(‘about_us’) || is_page(‘login’) || (is_page(‘register’) && !is_user_logged_in()))

    And I don’t think that it is what you wanted. Hence the correction.
    2. After the if() statement you put a semicolon. So, you conclude its execution without having it do anything if the statement is true.
    3. the wp_redirect() function expects the redirect number as integer, so I removed the single quotes.

    That’s it, I hope it helps you.

    Evgeny
    Keymaster
    Posts: 997
    July 16, 2024 at 6:59 pm #49490

    Hi. I am sorry for the late reply; I was out of commission for a week, unfortunately. The screenshot you’ve sent is broken. Can you make one again and explain in more detail what do you need? Thanks, and sorry again for the delay.

    Evgeny
    Keymaster
    Posts: 997
    July 5, 2024 at 5:45 pm #49434

    Hello. Sorry for the issues you are experiencing. I will explain: version 2.9.1, rolled out on 11.12.2018, introduced some breaking changes. The theme was completely rewritten, and a mechanism was established to help clients migrate to the new version. But now, 5.5 years later, this mechanism is not compatible anymore and doesn’t do its job. This update is technically as if you (almost) moved to another theme. We cannot assist you with the issues. The only thing you can do is restore your backup, create a staging environment, update the website there and rebuild everything that needs to be rebuilt. And then roll the new websites out. I’m afraid there’s no other way. Always updating the themes when a new version is out is important. This is how these situations can be avoided.

    Evgeny
    Keymaster
    Posts: 997
    July 5, 2024 at 5:37 pm #49433

    Hi. Sorry for the late reply. It seems that the issue is not on your side. It is ours, in the theme. We will probably need to put a fix in the next theme update, and we will roll it out this month. Sorry for the inconvenience, and thank you for your patience. I will give you update the moment I know more.

    Evgeny
    Keymaster
    Posts: 997
    June 27, 2024 at 12:20 pm #49421

    Hello. I’m sorry to hear that you are experiencing difficulties. Please send me private message access to your admin area by ticking the box “Set as a private reply”. FTP access would also be helpful. Thanks.

    Evgeny
    Keymaster
    Posts: 997
    June 11, 2024 at 10:57 am #49409

    Hi. Sorry for the delay in my reply. I checked, and Nav Menu Roles works perfectly with Evolve. If you have issues with this, the conflict is not with the theme; it is with something else on your website. Try to find out what by deactivating all other plugins, making sure that everything is working as expected, and then starting to activate them one by one and checking again. You should be able to locate the issue this way.

    Evgeny
    Keymaster
    Posts: 997
    May 1, 2024 at 10:47 am #49387

    Hi Michael,
    It isn’t any nuisance at all. I should have explained. This is exactly what I wanted to show. Take what you wrote, add a semicolon at the end, and add it where you want a line break to appear. And it will. Look at it as a functioning alternative to the br tag.

    Evgeny
    Keymaster
    Posts: 997
    April 30, 2024 at 9:39 am #49385

    Hi Michael,
    No problem. I’m happy it worked out. As for your questions – title attribute cannot be styled directly. There are options to style it using CSS, but these are workarounds, I wouldn’t advise to do it and it is out of the scope of our support. As for the inability to use
    – this cannot be done, true. WordPress removes them. Use this instead:

    Without the double quotes. It should work.

    UPDATE: see here:
    https://prnt.sc/nlHUDG4eFWld

    Evgeny
    Keymaster
    Posts: 997
    April 20, 2024 at 4:57 pm #49376

    No problem. I’m happy to hear that removing Gutenberg solved all the issues. Have a great weekend.