• Resolved ncgyber

    (@ncgyber)


    Guest cancel request page on my website looks absolutely destroyed and needs to be adjusted. Page header is missing, and the content is duplicated for some strange reason(Please refer to the screenshot in the link and it is zoomed out to 75%). Is there any way I can make change to the request page layout?

    • This topic was modified 3 years, 2 months ago by ncgyber.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Vikram S.

    (@jodhavishalsingh)

    Hi @ncgyber , the template picked by guest cancellation page is default from theme.

    Can you share the guest cancellation page URL along with a temporary account details here so I’ll check and update you.

    Thanks

    Plugin Author Vikram S.

    (@jodhavishalsingh)

    Hi @ncgyber ,
    Hi, you can create a new template file called “page-guest-cancel-req.php” in your active theme’s root directory and add the given function in your theme’s functions.php file, so it will call the custom template you created.
    right now it’s picking default single.php

    add_filter('template_include','template_redirect_wc_cancel_req');
    function template_redirect_wc_cancel_req($template){
        $url_path = trim(parse_url(add_query_arg(array()),PHP_URL_PATH),'/');
        if($url_path === 'guest-cancel-req' && file_exists(get_template_directory().'/page-'.$url_path.'.php')){
            $template = get_template_directory().'/page-'.$url_path.'.php';
        }
        return $template;
    }

    Hope it works.

    Thanks

    Thread Starter ncgyber

    (@ncgyber)

    Thank you for your support.
    It took a lot of time to figure out what I am supposed to be doing since I am not a programmer, but I can see your solution is doing something.

    I had no idea how to make my own template, so I just duplicated a template file called ‘template-fullwidth.php’ that was in my theme folder and renamed it to ‘page-guest-cancel-req.php’.

    Now I can see proper page header with title, which is what I wanted, but the content is still duplicated(and now it is even on top of the page header) and I just can’t figure out what part of the template has to be removed or adjusted.

    If you could have a look at my template file as well, that will be highly appreciated.

    The URL that I have sent via email is still available for you to have a check how it looks like after I applied template file. Thanks.

    Plugin Author Vikram S.

    (@jodhavishalsingh)

    Hi @ncgyber , please share the template file on my email id, so I’ll be able to check.
    I can’t figure out anything just by URL.

    Thanks

    Thread Starter ncgyber

    (@ncgyber)

    I have replied with the file via Gmail that you have sent previously.
    Thanks.

    Thread Starter ncgyber

    (@ncgyber)

    All the issue is resolved!
    Thank you so much for your support!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Edit guest cancel request page?’ is closed to new replies.