Hi Everybody,
I'm using a Master-Page and the CSS block is easily over 1000 lines of code.
When I use the Master-Page to build subsequent pages, each page will dupicate all 1000+ lines of code.
How can I save all 1000+ lines of code in a style.css file and link to that from eacvh of the oter pages?
(There must be a tutorial addressing that)
Saving CSS files
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
- jPaul
-

- Posts: 73
- Joined: Thu Jun 10, 2021 11:00 am
Saving CSS files
Many Thanks,
-Paul-
If I wasn't so stupid, I wouldn't have to be so persistent.
-Paul-
If I wasn't so stupid, I wouldn't have to be so persistent.
- Pablo
- Posts: 24012
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: Saving CSS files
A master page is a design concept, it only exists in the workspace.
When you publish pages then the master page content will be merged other page content.
There is no option to separate publish the styles of a master page.
The reason for this is that generated code depends on the context of objects.
For example, objects that are part of a layout grid (or other containers) generate different code than objects outside the grid. And there are many other variations.
Therefor there is no reliable way to share local styles sheets between pages.
But you can use global style by using the Style Manager these style will be placed in one style sheet shared by multiple pages.
https://wysiwygwebbuilder.com/style_manager.html
When you publish pages then the master page content will be merged other page content.
There is no option to separate publish the styles of a master page.
The reason for this is that generated code depends on the context of objects.
For example, objects that are part of a layout grid (or other containers) generate different code than objects outside the grid. And there are many other variations.
Therefor there is no reliable way to share local styles sheets between pages.
But you can use global style by using the Style Manager these style will be placed in one style sheet shared by multiple pages.
https://wysiwygwebbuilder.com/style_manager.html