*

Ivanko

  • *****
  • 388 posts
New page
« on: April 26, 2020, 09:36:53 AM »
Hi
How can I create/register new blank page without header and footer, not using admin panel.
Need new page for plugin

*

MB Themes

Re: New page
« Reply #1 on: April 26, 2020, 11:59:38 AM »
@Ivanko
These must be created from plugin side, adding routes as well.
I do not think it is possible to remove header and footer for 2 reasons:
- new page use custom.php or user-custom.php from theme folder, both usually having header/footer
- header & footer contains all information about stylesheets and javascripts

You may hide header & footer via CSS directly inlining this to page.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ivanko

  • *****
  • 388 posts
Re: New page
« Reply #2 on: April 26, 2020, 08:28:17 PM »
This what I am fighting for.

I need a blank page to make RSS channel in XML format :-\
Build in RSS option is scrap.

Right now, only way to create new page thru admin and run my hook there.



I think it is impossible hide header/footer, i need to register also
Code: [Select]
header('Content-type: text/xml; charset=utf-8');
 :-\ :-X

*

MB Themes

Re: New page
« Reply #3 on: April 26, 2020, 08:31:57 PM »
Then just create blank php page and include oc-load.php to get osclass functions
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots