Template tweaking
-
Hello,
I’m trying to make a template for my print shop. I have slider revolution and want to have a slider at the top and images below. I’ve combined the code from the slider revolution blank template (visible on my “home” page) and the default from Storefront. My issue is a strange space at the top of my page, yet it is displaying the transparent menu over the space: https://lanasartprints.com/landscapes . It should look like it does on the “home” page.
Here’s my template code:<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other ‘pages’ on your WordPress site will use a
* different template.
*
* @package storefront
*/
?>
<!DOCTYPE html
<html <?php language_attributes(); ?> class=”no-js”>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<meta name=”viewport” content=”width=device-width”>
<link rel=”profile” href=”https://gmpg.org/xfn/11″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
<?php wp_head(); ?>
<style type=”text/css”>
body:before { display:none !important}
body { background:transparent}
</style>
</head><body <?php body_class(); ?>>
<div id=”primary” class=”content-area”>
<main id=”main” class=”site-main” role=”main”>
<?php
do_action( ‘storefront_page’ );
?>
<?php
do_action( ‘storefront_sidebar’ ); ?>
<?php wp_footer(); ?>
</body>
</html>I’m new to tweaking php so it could be really obvious lol. But what’s causing the space? Also the sidebar isn’t showing up but one at a time.
The page I need help with: [log in to see the link]
- The topic ‘Template tweaking’ is closed to new replies.