Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Integrate HTML/CSS/JS Site to Grav CMS

first-time

Started by Patrick D. 6 years ago · 1 replies · 2173 views
6 years ago

I have a simple site that uses HTML/CSS/JS and I want to add it to my grav site as well. Ive seen examples of people inserting the raw html code in between grav code.

But for some reason I dont understand why its not functioning as intended. Can anybody help me in making this work?

Ive attached the link for the zip files containing the grav project and the html project.
https://drive.google.com/file/d/1PbduScEWSF5HLHh5RAsi70sgbFaN84pp/view?usp=sharing

Thank you!

6 years ago

You cannot copy & paste any HTML code with different CSS styles and maybe external JS dependencies into Grav. It's OK for code fragments, but in most cases it won't work for complex documents.

A better approach is to integrate an external page in an iFrame. You can use either a simple iFrame or a responsive iFrame solution. E.g. https://marketmix.com/de/grav-cms-responsive-iframes/

Translation here:
https://translate.google.com/translate?hl=en&sl=auto&tl=en&u=https%3A%2F%2Fmarketmix.com%2Fde%2Fgrav-cms-responsive-iframes%2F

-- Harald

last edited 10/09/20 by Harald Schneider

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 4 days ago
3 92 9 minutes ago
General · by Old Man Umby, 2 days ago
1 60 2 days ago
General · by Sebastian, 4 days ago
1 81 4 days ago
General · by Andy Miller, 2 weeks ago
0 216 2 weeks ago
General · by ready-4-IT, 6 months ago
1 716 3 weeks ago