Brendow Adriel
Brendow Adriel

Reputation: 434

How to add a different css style in a static page in XMLUI theme dspace?

How to Add a different css style in a static page in XMLUI theme dspace? Without harming the current theme CSS.

Upvotes: 0

Views: 335

Answers (2)

terrywb
terrywb

Reputation: 3956

Are you wanting to apply this custom CSS to your entire site, or to one particular theme? If you have defined multiple themes, you can add custom CSS files to a specific theme in the sitemap.xmap file.

                   <map:transform type="IncludePageMeta">
                        <map:parameter name="stylesheet.screen" value="lib/style.css"/>
                        <map:parameter name="stylesheet.screen#2" value="lib/jquery-ui-1.8.15.custom.css"/>

                        <map:parameter name="javascript#1" value="lib/jquery-1.6.4.min.js"/>
                        <map:parameter name="javascript#2" value="lib/jquery-ui-1.8.15.custom.min.js"/>

                        <map:parameter name="theme.path" value="{global:theme-path}"/>
                        <map:parameter name="theme.name" value="{global:theme-name}"/>
                    </map:transform>

Sample sitemap.xmap CSS inclusion

Upvotes: 1

Ad&#225;n
Ad&#225;n

Reputation: 381

You must add "class" and "ids" to the html components of the static page, and, at the css, set the properties with the desired values

Upvotes: 0

Related Questions