This topic has 6 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #211666
     riggerh
    Participant

    Hi!

    I customized my 404.php in the child theme. It all was working fine until I tried to hide some sites (for members, plugin is uam). Now my 404 site links to your demo page (https://seventhqueen.com/themes/kleo/demo-portfolio/?page_id=5), but only when I try to call a “hidden” site or hit the logout button. If I call a “normal” wrong page (like url/123) the correct 404 page is showing…

    #211707
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #211736
     Radu
    Moderator

    Hi,

    How did you hidded that titles ?

    Not sure if they can be related, you can try to revert those changes and to use this plugin : https://ro.wordpress.org/plugins/404page/

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #211790
     riggerh
    Participant

    Hi,
    I regulate the access to the member-pages with “uam”, user access manager. That is a known plugin. What I was wondering about is that when I try to call a member-only-site when I’m NOT logged in by typing the url like flieger.adminkurs.de/intern, I get the 404 page from https://seventhqueen.com/themes/kleo/demo-portfolio/?page_id=5 ! But when I’m testing to access a non-existing page like flieger.adminkurs.de/123, I get the “right” 404 page I want to appear (modified 404-page from the main theme copied in the child theme)… strange, isn’t it? Can you explain why the 404 from the seventhqueen-demo is shown?
    Regards

    #211872
     Radu
    Moderator

    I think i know why, somehow in a case serve the 404 page from child and the other from parent and the parent theme 404.php file has by default right sidebar, try the next snippet

    COPY CODE
    
    function sqr_404_full_layout()
    {
        if ( is_404() ) {
            kleo_switch_layout('full');
        }
    
    }
    
    add_action ('kleo_header', 'sqr_404_full_layout');
    
    

    Most sure there we have 404 there because it’s a wrong link.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #211981
     riggerh
    Participant

    Nice try, but without ANY posotive result. The error behaves still in the same way like I describes before! Please keep on thinking
    regards

    #212012
     Radu
    Moderator

    Hi,

    Not sure if this behaviour it’s a theme specific one, i think it comes from how your plugin handles the redirect for the non-logged in users, did you had tried to ask the same on their support maybe they will come with an idea related to this ?

    You can ask them for a snippet that redirect guest user when they access a premium membership specific one, then add the correct, your desired 404 url there.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?