Create a web page
A Web Page is a static page of your website, for example About Us, Contact Us, or Terms and Conditions.
INFO
Web Page is part of the Frappe Framework.
Create and publish the page
- Open the Web Page list and create a new Web Page.
- Enter the Title. Search engines give the title the most weight, so use the words that your readers search for. ERPNext creates the Route (the URL) from the title. You can change it.
- Select the Content Type: Rich Text, Markdown, HTML, Page Builder, or Slideshow.
- Add the content in Main Section.
- Select Published, and save.
To view the page, select See on Website in the sidebar.
Add images
- Rich Text: insert images in the editor.
- Markdown and HTML: attach the image to the Web Page first. Copy the link of the attachment, then use it in the content.
Markdown:
HTML:
<img alt="Alt text" src="/files/image-name.png">Schedule publishing
Enter a Start Date and an End Date. ERPNext publishes the page between these dates, and unpublishes it outside them. An unpublished page returns an Error 404.
Add a sidebar or comments
In the Settings tab, section Sidebar and Comments:
- Select Show Sidebar, and select a Website Sidebar. A Website Sidebar is a list of links (Sidebar Items) that you create once and reuse.
- Select Enable Comments to let visitors leave a comment with their name and email address.
Add a header and breadcrumbs
In Header and Breadcrumbs:
- Header: custom HTML for the top of the page. It replaces the title.
- Breadcrumbs: a list of links that shows above the header.
Add meta tags
In the Meta Tags section, enter the Title, Description, and Image that search engines and social networks show. For other meta tags, see Add meta tags for search engines.
Add JavaScript and CSS
In the Scripting tab, write JavaScript in Javascript. Put the code inside the
frappe.readycallback:jsfrappe.ready(() => { // your script here });In the Style tab, write CSS in CSS. Inspect the page in the browser to find the classes.