Insert some html pages
-
Hi all,
I created some external HTML pages and inserted in WP via upload (or direct copy via ftp).
When I call them with menu they work perfectly, but now I want to “hide” the full path, e.g. with a permalink.
Now the path is: “”http://www.XXX/wp-content/uploads/newhtmlname”.I see three options:
1) modify the php and then add an echo path to the new pages
(personally dislike to touch the php structure, but …)2) create a new folder where to move the new files, or put them directly in main WP folder:
e.g.: “http://www.XXX/newhtmlname” (main folder case), or “http://www.XXX/newfolder/newhtmlname” (new subfolder case)3) add a new page with WP system (like my all other standard WP pages) and in the new page call the new html via iframe.
I already tested this solution, the method should be as follows:a) in my main css prepare the new page as “blank” (delete the page title, no header, black background, one column 100% wide, etc.),
b) then in the new page add only:<style type="text/css">body {margin:0; overflow:hidden;}</style> <iframe src="http://www.XXX/wp-content/uploads/HTML/newhtmlname" style="position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100vw; height:100vh; border:none; margin:0; padding:0; overflow:hidden; z-index:999999; display:block;">fallback text</iframe>Which should be the best solution in your opinion?
All the solution work, but I’d like to have your opinion on the best one (or other eventual solutions).Thank you.
Mauro
The topic ‘Insert some html pages’ is closed to new replies.