I’m unable to remove the last 5 or 10 pixels of margin at the top of the page.
I tried grouping the post content block in the blank template and setting that margin to zero.
I tried using different blocks, such as just a heading or just an image.
It’s only with 2023 theme that I can tell. I’ve tried out other themes from Anders Norén and Frost, and I’m able to have my cover image full height with no margins with these themes.
Thank you for your time
]]>Thanks for any help you can give!
Page code:
<?php /* Template Name: Blank Template */ ?>
<head>
<title>
<?php
// Print the <title> tag based on what is being viewed.
global $page, $paged;
wp_title( ‘|’, true, ‘right’ );
// Add the blog name.
bloginfo( ‘name’ );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( ‘description’, ‘display’ );
if ( $site_description && ( is_home() || is_front_page() ) ) {
echo ” | $site_description”;
}
// Add a page number if necessary:
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
echo esc_html( ‘ | ‘ . sprintf( __( ‘Page %s’, ‘twentyeleven’ ), max( $paged, $page ) ) );
}
?>
</title>
<link rel=”profile” href=”https://gmpg.org/xfn/11″ />
<link rel=”stylesheet” type=”text/css” media=”all” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” />
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php
if ( is_singular() && get_option( ‘thread_comments’ ) ) {
wp_enqueue_script( ‘comment-reply’ );
}
wp_head();
?>
</head>
<div id=”primary” style=”padding: 0px”>
<div id=”content” style=”width: 100%; margin: 0px;” role=”main”>
<?php
while ( have_posts() ) :
the_post(); ?>
<?php get_template_part( ‘content’, ‘page’ ); >
<?php comments_template( ”, true ); ?>
<?php endwhile; // end of the loop. ?>
</div><!– #content –>
</div><!– #primary –>
I am using Glades theme, which uses a “Magazine Homepage” template for content display. In the homepage, you choose this template, and the page itself remains blank, while your actual homepage online has content and widgets for more content.
The problem is that Yoast SEO says the page has 0 words, etc. Is there a way to get Yoast SEO to work with this kind of template setup for a theme?
Thank you.
]]>The template I have created is here, https://dj-hire-london.co.uk/test-3/ using the code below, any help would be appreciated.
<?php
/*
Template Name: LPS
*/
?>
<html>
<head>
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" />
<style type="text/css">
body
{ background-color: #3a3a3a; background-image: url('https://dj-hire-london.co.uk/wp-content/uploads/2013/12/dj-hire-london-background.jpg'); background-repeat: repeat; background-position: top center; background-attachment: fixed;
}
</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>
]]>I am trying to create my own custom theme and I am at the very beginning. I have followed the following tutorial to get the pages in tact, and all went great:
https://themeshaper.com/2009/06/25/wordpress-theme-template-directory-structure-tutorial/
My problem is now I have installed a plugin, and I am not getting anything but a blank white page. I know the theme is correct cause if I right click and view source of the page, I see it’s the template (html code) I have just created, just that there are no plugins showing…Can someone tell me if there are some hooks I might be missing in the index.php page? I am thinking along those lines, but maybe I am going to far at first? Not sure please help!
Note: I have tried the plugin in the twentyfifteen theme and it DOES work, but not in my custom theme, it’s blank, other than the code from the above url I have followed.
Thank you
Brian
I was able to do that popup similar to that website as you can see from my clients website here https://allaboutmac.ca/new/ but mine is still going to a contact page. As a result I had to put some kind of thank you message in the contact page.
my question is how do I completely hide the contact page so the users will see the contact form in popup similar to this website https://www.dentalcorp.ca/. Can anyone please help.
]]>The problem is : header,sidebar,footer, background image still include into my template even when I don’t call any css, html…
So how to create a blank template (because I create a payment system that’s just receive a value, this system doesn’t accept any html,css).
Please help me !
]]>https://waynehairston.com/quick-print-coupons/
]]>