Custom page template // width problems
-
Hello,
I have WordPress 5.1 running Omega theme.
I wanted to create a standalone page which is outside of the theme, so I created a custom page template like this:
<?php
/**
* Template Name: Clean Page
* This template will only display the content you entered in the page editor
*/
?><html <?php language_attributes(); ?> class=”no-js”>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<?php wp_head(); ?>
</head>
<body>
<?php
while ( have_posts() ) : the_post();
the_content();
endwhile;
?>
<?php wp_footer(); ?>
</body>
</html>This is the page in question: https://www.ingibjarni.com/tenging
It is basically what I wanted except for one small problem, the page width is just a little bit to big as you can see. There are horizontal scrolling arrows at the bottom of the browser now. How can I fix this?
The page I need help with: [log in to see the link]
- The topic ‘Custom page template // width problems’ is closed to new replies.