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: 83
- 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: 24242
- 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
- jPaul
-

- Posts: 83
- Joined: Thu Jun 10, 2021 11:00 am
Re: Saving CSS files
I wasn't clear, I think:
My Master_Page has several objects on it [Menu, many action links, images] This Master_Page then will have over 1000 lines of CSS code.
However, each of the many pages I will design for a website will use this Master_Page as the basic basic layout, copying the various objects contained in the shared Master_Page. Each of the pages will also duplicate the over 1000 lines of CSS code.That is not necessary.
I'm willing to copy all of the CSS Code to a seperate .css file, and then delete that code in each web_page and place a <link rel="stylesheet" href="my_shared_Master_Pagestyles.css">. That's complicated for my bandwidth.
There must be an option to save all of the Master_Page CSS code to one single external file?
Isn't there?
My Master_Page has several objects on it [Menu, many action links, images] This Master_Page then will have over 1000 lines of CSS code.
However, each of the many pages I will design for a website will use this Master_Page as the basic basic layout, copying the various objects contained in the shared Master_Page. Each of the pages will also duplicate the over 1000 lines of CSS code.That is not necessary.
I'm willing to copy all of the CSS Code to a seperate .css file, and then delete that code in each web_page and place a <link rel="stylesheet" href="my_shared_Master_Pagestyles.css">. That's complicated for my bandwidth.
There must be an option to save all of the Master_Page CSS code to one single external file?
Isn't there?
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: 24242
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: Saving CSS files
I'm sorry, that is not how it works. As mentioned, a master page is not a separate page of your website. It does not exists in the published files. Its content will be merged with content pages and therefor the CSS will be part of the CSS file of that page. The ID's may not even be the same depending on the context of the objects, so having a global file for these objects will not be reliable.
But you can use global styles (via the Style Manager), to reuse styles in multiple objects.
But you can use global styles (via the Style Manager), to reuse styles in multiple objects.