Hard to saw without looking at it, but an educated guess:
More than likely it is the CSS for the admin bar, which only appears when you are logged in. the <?php wp_head() ?>
will include the css for it, and <?php wp_footer(); ?>
includes the html for the admin bar.
If you look, it should actually be a margin-top added to the html tag.
Related Posts:
- Caching and Versioning for rtl.css
- How to control initial wp_head() output?
- How can I get wp_head() as a string instead of echoing it?
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- wp_head() not inserting the default stylesheet style.css
- Why wp_head() function not loading style.css?
- What is the safe way to print tracking code / pixel code before tag or tag
- How to modify default controls in WordPress theme customizer
- How to use Canonical URL meta tag to avoid duplicate content issues with WP home pages
- How to output wp_enqueue_style() in HTML head instead of footer
- Is there a way to prevent wp_head from outputting self-closing tags?
- Making update notification functionality for my themes
- Get ‘page’ number with infinite scroll
- Theme Customizer : how to create multiple-level panel
- How to wrap the widget content with a div or get the widget title outside?
- How to execute conditional script when on new customize.php (Theme Customize) screen
- How to develop a multilingual theme?
- Run shortcode before filters
- Where i should not use if (!defined(‘ABSPATH’)) { exit; }?
- why does twenty eleven theme mix up the css measurement units?
- Hide 2022 Parent Theme Templates / Parts
- What flex-width/height does?
- Should we localize custom-made themes / plugins?
- How can i customize the comment list
- Should I update my _s theme?
- How do I highlight the menu for a child page?
- WordPress Genesis Child Theme Filter divs
- Displaying part of every child page?
- How do I obtain the post content via a custom meta box inside the editor?
- Displaying Remote Data inside of Theme admin
- WordPress 5.8 update problem custom theme styles are overridden by core styles common.min.css
- How to correctly add JQuery in a WP theme?
- how to change a theme slug
- Weekly background code not working
- How to add code in the content area in a WordPress theme?
- Can I show all the template files that are being used on my site?
- How can i add edit shortcut icon in wordpress customizer without using selective refresh?
- Meta tag viewport
- Switching theme only changes style sheet being used
- Is function_exists() considered a good practice when using 3.0+ functions?
- How to add Bootstrap Tour JavaScript to WordPress Admin Panel Dashboard Widget
- get_theme_mod returning no output
- Can I have a widget and sidebars in custom theme?
- How to change database values on theme update
- after renaming my wp-content folder, how do I upgrade my wordpress version?
- WordPress theme switcher
- How can I wrap html around the output of the_time function?
- WP_bootstrap_Navwalker_issue [closed]
- Adding custom class to get_avatar() image doesn&https://wordpress.stackexchange.com/https://wordpress.stackexchange.com/#39;t work
- Issue on Adding A Class to Bootstrap Navbar Walker Dropdown
- Make custom CSS changes and use built in theme customizer later?
- Theme’s window.open call goes to “Page Not Found”
- Inserting images in multiple posts native gallery
- correct tags for validating input types
- Dynamic menu links after header title
- Does the textdomain have to be the theme’s name?
- How to query the latest 5 posts and sort them by title?
- Prerequisites Skills to learn WordPress [closed]
- Template Tag “template_directory” pulling wrong path
- How to rotate every letter in a title
- wordpress 404 not found after rewrtie the author link
- the_post_thumbnail() get the URL to the “medium” sized image
- WordPress Theme that returns all posts as a JSON object?
- Can I make a Customizer dropdown-pages list include private pages?
- HTML block gutenberg templates
- Use a filter on menu items that have children
- Do I need to escape get_the_post_thumbnail function?
- Why is switching between themes breaking my child theme?
- Reusable and site-wide content that can be used in a theme
- How to disable WordPress to put P tags?
- New to WordPress – Read the Codex, Other Docs; Still Confused
- CSS preprocessor file messed up after compiled
- Style first 3 posts differently with WP_Query [duplicate]
- is_front_page use in sidebar.php
- matisse theme show excerpts not whole content
- My custom taxonomies are not showing up in the admin menus
- How to change a local wordpress installation xml export file urls? and change them to what if you don’t have a live website?
- How to get URL of category of a custom post?
- How to add custom theme in hosting server?
- Is there a plugin for versioning files in the theme (style , .js and .php files)?
- Getting post URL within custom content template
- WordPress Custom Theme : Theme Builder vs ACF vs Gutenberg
- Getting unexpected warnings from theme options code
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- Different templates for each category level
- How to show children pages as array
- wp_nav_menu custom walker class
- Changes to template not showing up unless ?reset=1 added to URL
- How to add drop symbol to parent nav items which have child
- Enqueue Stylesheets After Theme’s “rtl.css”
- How do I keep images in posts below a certain size without editing the post?
- How can i use archive.php for indexing wordpress default posts?
- How can I add a single image from a gallery into the page header?
- How to create full header but keep content narrow
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- Theme template file for a specific custom taxonomy
- How do I work with responsive images in WordPress? (img srcset/sizes)
- How can I use pre declared blocks in a php file?
- jQuery Snippet Not Working on WordPress Site [closed]