• Resolved gleysen

    (@gleysen)


    we use a custom theme, and betterdocs displays ok but not perfect.
    It uses our custom header and footer, but also still displays the site title and the default wordpress footer that displays that it’s build with WordPress.

    I’ve been trying to find out which theme template file is used for displaying the betterdocs home page, but I can’t seem to find it. I tried the single, archive etc…
    What do I need to change in the theme files, to catch the betterdocs page and make sure it only displays our own custom header and footer, and nothing else?

    Thx!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @gleysen,

    I hope you are doing well.

    You can find the docs page template in this folder public -> wp-contents -> plugins -> betterdocs -> public -> partials -> archive-template and now you can edit category-box.php or category-list.php file based on what you are using. In both of these files, you will see get_header(); and get_footer();.

    I assume you have made your custom theme based on a child theme. So this issue could come from there. Also, I request you to check your theme’s main header and footer PHP file of your theme. Perhaps, there is some misconfiguration.

    You can also check the header and footer part of this WordPress official theme development doc here for more details.

    Let me know how it goes. Thank you

    Thread Starter gleysen

    (@gleysen)

    @onlykawshar With the information you provided, I was able to create an empty footer.php and header.php in the root of our theme, and that fixed it! (Our theme overrules the standard way that footer and headers are included)

    One more thing, right now the betterdoc page use the full width of the browser, in case I would like to have it boxed (with a max width) I would normally change the template for the page… however, since they are located in the plugin directory, that would cause possible problems of them being overwritten when the plugin gets updated, no?
    So is there a way to change the templates outside or the plugin directory? I tried by adding a single-docs.php to the root of the theme, but that didn’t work..
    Thx again for your help!

    Hello @gleysen,

    I hope you are doing well.

    It would be appreciable if you please share the webpage URL which you want to have boxed or a max width. I assume it could be fixed by using some Custom CSS.

    Looking forward to hearing from you back. Thank you!

    Hello @gleysen,

    Greetings. I hope you are doing well.

    I am resolving this ticket as you have solved your header footer issue. But I haven’t heard from you since you tried for the boxed width. So, I was wondering if your issue has been resolved or not. Please let us know. I wish you a good day.

    Thank you!

    Thread Starter gleysen

    (@gleysen)

    Hey @onlykawshar I can’t share a URL since it’s still on a local test environment, but I’ll try to use the CSS suggestion and if that doesn’t work, I’ll just edit the template In the plugin directory directly as a last resort..

    Thx for the help, you can close the ticket!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Use Custom theme without Elementor’ is closed to new replies.