Version 6.x.x Source

Table Name: tabWebsite Theme

Fields

Sr Fieldname Type Label Options
1 theme Data Theme
2 module Link Module Module Def
3 apply_style Check Apply Style

This must be checked if the below style settings are applicable

4 custom Check Custom?
5 column_break_2 Column Break
6 bootstrap Small Text Link to Bootstrap CSS

Link to your Bootstrap theme

7 section_break_14 Section Break
8 font_size Select Font Size
12px
13px
14px
15px
16px
17px
18px
9 text_webfont Data Google Font (Text)

Add the name of a "Google Web Font" e.g. "Open Sans"

10 heading_webfont Data Google Font (Heading)

Add the name of a "Google Web Font" e.g. "Open Sans"

11 column_break_18 Column Break
12 text_color Data Text Color
13 link_color Data Link Color
14 heading_style Select Heading Style
UPPERCASE
Title Case
lowercase
15 section_break_8 Section Break
16 top_bar_color Data Top Bar Color
17 top_bar_text_color Data Top Bar Text Color
18 no_sidebar Check Hide Sidebar
19 column_break_11 Column Break
20 footer_color Data Footer Color
21 footer_text_color Data Footer Text Color
22 section_break_4 Section Break
23 background_color Data Background Color
24 column_break_6 Column Break
25 background_image Attach Image Background Image

If image is selected, color will be ignored.

26 section_break_21 Section Break
27 css Code Style using CSS
28 js Code JavaScript

Controller

frappe.website.doctype.website_theme.website_theme

Class WebsiteTheme

Inherits from frappe.model.document.Document

clear_cache_if_current_theme (self)

No docs


export_doc (self)

Export to standard folder [module]/website_theme/[name]/[name].json.


is_standard_and_not_valid_user (self)

No docs


on_trash (self)

No docs


on_update (self)

No docs


use_theme (self)

No docs


validate (self)

No docs


validate_colors (self)

No docs


validate_if_customizable (self)

No docs



frappe.website.doctype.website_theme.website_theme.add_website_theme (context)

No docs


frappe.website.doctype.website_theme.website_theme.get_active_theme ()

No docs


Public API
/api/method/frappe.website.doctype.website_theme.website_theme.use_theme

frappe.website.doctype.website_theme.website_theme.use_theme (theme)

No docs


Linked In: