A
A
Alex Memstill2018-05-22 08:31:18
JavaScript
Alex Memstill, 2018-05-22 08:31:18

How to embed html page in wordpress?

Good day.
Made a website on wordpress. Now they threw off the page, asked to add it to the site.

<!--Данный фрагмент кода необходимо вставить в конец страницы, перед закрывающимся тегом </body>-->
<link rel="stylesheet" type="text/css" href="http://svoydom.online/catalog/view/theme/dom31/stylesheet/svoydom.online.css"/>
<script type="application/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="application/javascript" src="http://svoydom.online/catalog/view/theme/dom31/js/svoydom.online.js"></script>
<!--Данный фрагмент кода необходимо вставить в конец страницы, перед закрывающимся тегом </body>-->
<!--Данный фрагмент кода необходимо вставить в место вывода каталога-->
<div id="catalog_products_put">
</div>
<!--Данный фрагмент кода необходимо вставить в место вывода каталога-->

Here is the page code, I tried to add scripts and styles to the header, and add blocks to the page, but the page is empty.
Page header
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>
    </title>
</head>
<body>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-05-22
@azerphoenix

Hello!
1) jQuery is already connected to the VI. If you want to connect your own jquery, then do it via functions.php
Here, I answered how to connect and why the VI "does not understand" the dollar sign - How to properly connect jquery in wordpress?
2) Eliminate synth. errors in your scripts (if any)
3) include scripts and styles for this page through functions.php if you need to load styles for only one page, then use the page ID (conditional tag is_page (ID))
4) create a template for the VI. Name it page-{slug}.php Add a Template name:
5) paste your html there and create a separate header-{slug}.php footer-{slug}.php if needed. Accordingly, in the template, specify get_header() & get_footer() with the slug header &

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question