How can I insert / upload an external html file to wordpress? - html

This may be asked before but I couldn't find any answer which is directly related to my question.
I have a web site using wordpress theme. I want to insert an external html file to the site but I couldn't find anyway to do that.
Note: Just copying the html code doesn't work. The external html file is an R Markdown document created in RStudio. So I must find a way to directly upload it.

You should create a page and paste there your html code
Create a page on the wordpress dashboard (i.e example)
The default appearance of the pages is generated by page.php file located in /wp-contents/themes/YOUR THEME/ folder. Create a php file page-example.php in this folder and paste your html code
When you'll go to this page you'll see the htm code

You have to use Custom Page Template where you can add your own HTML code. After that you just have to choose your page template while creating a page.
Take a look this link to read more about custom page templates.

Related

Create a report using multiple html files on R/Rmarkdown

I generated multiples html files from multiple Rmarkdown script and I want to create a main page with links to the different html files, a bit like a table of content.
I found the r package 'book down' but it doesn't seem to work with directly html files and I have difficulties when I tried with the Rmarkdown files due to the usage of template in these files.
Any idea ?
Thanks
You can just create a Notepad file with HTML code like this containing your links:
<html>
<body>
Link 1
Link 2
</body>
</html>
and then save it as example.html, then open it, it will be an HTML page with links.

Can't find html file in wordpress

I am looking for editing one of my website in wordpress. But the backend of page editing is empty and no any page builders. I also looked for files in theme editor. But can't find html file. Please help me.
There is no HTML file in Backend of Wordpress. All HTML files render by wordpress from .php files.
All you need is to go to your current Theme directory (wp-content/themes/your-theme-name) and edit .php file of your specific page.

Possible to open/read an .md/.html file automatically in my main HTML for blog site?

I'm trying to create a blog using HTML/CSS. So far, I've created and styled the page and I want to start adding blog posts.
Instead of filling up my HTML document with the blog article in a <p> or <h*something*> tag, I was hoping I can link to a local .md file in a blog-articles folder. That way, I can write the blogs in as .md files, stash them in the folder, and link them into my website.
Is this possible?
edit
I'd basically like to replace the typed out blog post in the main HTML with a link to either a .md or .html file that opens/reads automatically.
https://codepen.io/kremebey/pen/RJdQJp
[I've commented out the part of the HTML where the adjustment would likely occur]
You could use something like: https://github.com/evilstreak/markdown-js which is a great markdown visualizer. Or you could convert it to HTML with this: http://sebastianraschka.com/Articles/2014_markdown_syntax_color.html Hope this helps!

Include standalone HTML page in sphinx document

For most of my project's documentation I prefer a standard sphinx layout. However for the landing page I would prefer to use custom HTML/CSS/JS without any of the layout, TOC, or sidebars of the normal sphinx site. Is there a way to include a raw HTML standalone page in a sphinx-generated website in a way that completely disregards the normal layout of the rest of the site?
As a counter example I know that I can include raw HTML bits into a page using the following (see also this question)
.. raw:: html
:file: myfile-html
However this just embeds a file within the normal layout. I would like to have a completely standalone HTML page.
I just ran into this problem myself, and the way I solved it was to simply include the html file in my source/_static folder, then refer to it with a relative link.
So if source/_static/my_standalone.htm is the path where I have my non-generated HTML file, and the .rst file where I want to type my link is at source/otherfolder/index.rst, I write it like this in my rst:
Link to my non-Sphinx HTML file
===============================
To get to my standalone, non-generated HTML file,
just `click here <../_static/my_standalone.html>`_ now!

MEAN JS - where is the main html file (index.html) located

I just started learning MEAN JS and I am trying to find the html file for the main page. However I only see home.client.view.html and header.clinet.view.html in the view folder.
From what I know is, usually there is a main html which holds all the information of the home page, and we can add links of CSS files and JS files in the main html file.
How can I add links of extra CSS files and JS files in MEAN JS since i cannot find the main html file?
The MEANJS top level page is located under server/app/views/layout.server.view.html and is where you set header meta tags. Most everthing else on the page is programmatically inserted by angular, such as links to CSS files and Javascript files.
Any of the CSS or Javascripts files under your server/public directly are automagically added to the page. If you wish to add other, third-party scripts or stylesheets, you do so by editing your server configuration file, located at config/env/all.js.
So for example, to add the angular version of the tinymce editor to your MEANJS site, you'd edit config/env/all.js by adding CSS to module.exports.assets.lib.css and references to the tinymce editor and its angular wrapper to module.exports.assets.lib.js.
You will need to restart your server (via the 'grunt' command) if you change this file while the server is running.
UPDATE
Using mean-cli#0.6.1 to scaffold a new mean project, the default "top-level" page is located under packages/custom/meanStarter/public/views/system where you will find two files:
header.html - which describes the layout of the default navbar
index.html - which lays out the content of the default page
Now, having said that, it should be noted that the "proper" way of configuring a mean server to display your own top-level homepage is to create a new mean package.
See the docs for further information.