Loading...
 
Skip to main content

Features / Usability


How to apply theme for custom html pages?

Hi,

I have a custom HTML page but would like to apply the theme of the tiki site to the page as well. I mean, the page opens in the tiki site, but does not match the colours etc.

In particular, the page displays links in blue with underline, whereas the rest of the page (the left and right modules) displays links as black with underline only on hovering.

Hope I've made it clear.
Please help.

Sooraj.

You can designate a theme for Tiki's HTML pages as a group, although not for individual pages as far as I know. To assign a theme:

1) Make sure "Theme control" is checked (turned on) on the Admin/Features page (tiki-admin.php?page=features).
2) Go to the "Theme control" page (tiki-theme_control.php - listed in the left-column Admin menu).
3) On that page, click the "Control by sections" link (to get to tiki-theme_control_sections.php).
4) In the "Assign themes by section" part of the page, use the left dropdown menu to select "html_pages" and the right menu to select the theme you want the pages to have.

That should do it.

-- Gary


Hi

You would need to give your html page a style sheet to redesign your elements into the same colours as your chosen tiki theme. Or include the tiki theme style sheet and make your html page use the same classes, id and stuff.

Damian


Hi Gary,

When I did what you said, it changed the rest of the page except the html_page part which I had designed and which I want to change!

Sooraj.

> sooeydoo:
> Hi Gary,
>
> When I did what you said, it changed the rest of the page except the html_page part which I had designed and which I want to change!
>
> Sooraj.

My instructions were for an HTML page made using Tiki's "HTML pages" feature. If your page is made this way, it should get the correct style, following the procedure I described. This assumes you didn't specify any style (color, size, etc.) for the elements on the page, but only used plain HTML tags or tags with CSS class descriptions, etc. that the CSS file will recognize.

If the page was made independently of Tiki then, like Damian said, you'd have to make sure it links to your style sheet and that tags are identified in a way that is consistent with the identifiers in the style sheet.

If you're still not getting the results you want, maybe you could give us the page URL or attach the HTML file for us to have a look at.

-- Gary


> sooeydoo:
> Hi Gary,
>
> When I did what you said, it changed the rest of the page except the html_page part which I had designed and which I want to change!
>
> Sooraj.

My instructions were for an HTML page made using Tiki's "HTML pages" feature. If your page is made this way, it should get the correct style, following the procedure I described. This assumes you didn't specify any style (color, size, etc.) for the elements on the page, but only used plain HTML tags or tags with CSS class descriptions, etc. that the CSS file will recognize.

If the page was made independently of Tiki then, like Damian said, you'd have to make sure it links to your style sheet and that tags are identified in a way that is consistent with the identifiers in the style sheet.

If you're still not getting the results you want, maybe you could give us the page URL or attach the HTML file for us to have a look at.

-- Gary