Background only template issue
-
Hi,
I have created the following Background only template
[ Moderator note: Code fixed, please wrap code in backticks or use the code button. ]
<?php /** Template Name: Page with background only */ ?> <html> <head> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <style type="text/css"> body { background-color: #666666;} #page-content { width: 90%; margin: 5px auto; } #page-content p { font-size: 1em; font-family: Georgia; line-height: 1.5em; text-align: justify; } </style> <title><?php wp_title( '|', true, 'right' ); bloginfo('name'); ?></title> <?php wp_head(); ?> </head> <body> <?php while (have_posts()) : the_post(); ?> <div id="page-content"> <?php the_content(); endwhile; ?> </div> </body> </html>
that I use to open a page via Lightbox plus colorbox.
this works ok, except inserted stuff like sololoquy or unitegallery don’t work.Link here: https://laparare.fr/les-chambres/ and “Chambre la chapelle”
If I use the default page template everything works fine…
What am’I doing wrong in my template?(I’m a real beginner with WordPress!)
Thanks for help.
LB
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Background only template issue’ is closed to new replies.