add hidden inputs in form

This commit is contained in:
2024-06-17 11:30:05 +03:00
parent d7584deff0
commit b4abd8eec6
6 changed files with 74 additions and 21 deletions

View File

@@ -1,12 +1,3 @@
<?php
// Включение стилей AMP
function theme_amp_styles() {
wp_enqueue_style('theme-amp-style', get_template_directory_uri() . '/amp.css');
}
add_action('amp_post_template_css', 'theme_amp_styles');
// Начало AMP страницы
?>
<!doctype html>
<html amp>
<head>
@@ -16,10 +7,17 @@ add_action('amp_post_template_css', 'theme_amp_styles');
<link rel="canonical" href="<?php echo esc_url(get_permalink()); ?>">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<style amp-custom>
<?php
// Включение стилей из amp.css
readfile(get_template_directory() . '/amp.css');
?>
body {
font-family: Arial, sans-serif;
padding: 20px;
}
h1 {
color: #333;
}
img {
max-width: 100%;
height: auto;
}
</style>
</head>
<body>