Static Content like your Home Page, About Us, Contact Us, Terms pages can be created using the Web Page.
To access Web Page go to:
Home > Website > Web Site > Web Page
New Web Page
View your Web Page by clicking on See on Website in the side bar.
Web Page
The first thing to set is the title of your page. The title has the maximum weight for search engines so choose a title that reflects the keywords that you are targeting for your audience. The route (URL) will be auto-generated from the title but you can change it.
You can write your content in Rich Text, Markdown or HTML. If you want to make simple content pages, Rich Text and Markdown are great options.
Learn markdown in a few minutes at Mastering Markdown.
For Rich Text Content, you can directly embed images using the editor. For Markdown and HTML, you must attach the images to the document first. Now get the URL of your image by right-clicking on your attachment and copying the address.
Now, add them to your Markdown or HTML using the appropriate syntax.
<!-- markdown -->
![Alt Text](/path/to/image-url.png)
<!-- html -->
<img src="/path/to/image-url.png" alt="Alt Text">
You can also add a Slideshow to your Web Page. Refer how to create a Slideshow at Homepage Slideshow
You can schedule your Web Pages for publishing if you set Start Date and End Date for your Web Page. They will be set as published within the date ranges and will be unpublished outside the range automatically.
Unpublished pages will throw an Error 404
when they are visited.
You can add a JS script to your Web Page in the Script section. Make sure to write your script inside the frappe.ready
callback.
frappe.ready(() => {
// your script here
});
You can add CSS styling to your Web Page in the Style section. Inspect the elements to see what classes are available for styling. If you are using HTML Content, you can use your own classes and style them here.
You can add a Website Sidebar with custom links on your Web Page. In theSidebar and Comments section enable Show Sidebar. Select an existing Website Sidebar or create a new one.
Web Page Sidebar
Add links and their route in the Sidebar Items table.
Website Sidebar
Web Page with Sidebar
You can enable comments on your Web Page where people can leave a comment with their Name and Email. Enable comments from the Sidebar and Comments section.
Web Page Comments
You can add a custom HTML for the header section of the page. This will override the title of the Web Page.
Web Page Header
Web Page with Custom Header
You can add a list of breadcrumbs on your Web Page. These will be shown on top before the header.
Web Page Breadcrumbs
Web Page with Breadcrumbs
You can also add Meta Tags to your Web Page. You must add the property key and its value in the Meta Tag Table and it will auto-generate HTML meta
tags on your Web Page.
Web Page Meta Tags