Maybe this easy one could resolve: look into your twentysixteen header.php, there is a line of code like this:
<?php if ( is_front_page() && is_home() ) : ?>
you can move things (code) inside or outside this condition, and display content based on it for the home front page.
I appreciate your response axew3! This is the craziest situation I have ever come across working with WP. I copied the three different CSS code I attempted to insert in the () neither worked. After the second wrong CSS code, I realized more specigically thhat it is the logo & header menu that I am trying to get off the front page. I also copied the header.php in hopes it gives a better idea on which CSS code would work.
.home .site-header .site-navigation,
.home #footer-nav {
display: none;
}
`.page-id-22 header {
display: none;
}
.home .site-header .site-navigation,
.home #footer-nav {
display: none;
}
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title><?php bloginfo(‘name’); ?> | <?php is_home() ? bloginfo(‘description’) : wp_title(”); ?></title>
<link rel=”profile” href=”http://gmpg.org/xfn/11″ />
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php wp_head(); ?>
</head>
I appreciate any more suggestions anyone has, thank-you!
You need a custom front page template. If your theme provides a front page template, copy and rename it. Also rename the template name parameter in the header comment. This file likely has a call to get_header(). Replace this with a call to wp_head(). Add in all required header elements like <html> and <head>, charset, title, etc.
Ideally, you should create a child theme to contain your custom front page template and any other customization you may have. If your theme is already installed as a child of a common framework, you cannot do this. Keep a copy of your template in a safe place in case a theme update deletes your file.
If there is no special front page template, copy page.php to a new name and alter the header comment as shown in the Theme Handbook. Do the same get_header(), etc. replacement.
Whichever way you create your custom template, edit your front page and select your template from the dropdown, then click Update. This way you are not merely hiding content with CSS, the content is never sent out at all. More efficient and less prone to client side issues.
I was able to create a custom page template for my homepage. (Thank-you for the suggestion) To get rid of the header, I simply put none in the (). The header is gone now, yet the header menu is still there. I tried putting header menu none in the () too but that did not work. I only want to take it off my homepage.
THis is what I have right now: <?php get_header(none); ?>
Try replacing the <?php get_header(); ?> code with the entire content of header.php. Go through the content and remove everything you don’t want. You’ll at least need the doctype html and head tags plus a call to wp_head(). Also charset and viewport meta tags are required. The header.php content will likely also have the opening body tag and perhaps some other required wrappers like page and content divs. Check the footer template for the matching closing tags. Anything in footer that is closed needs the opening tags somewhere, often in the default header.php content. A good theme will add comment labels after the closing tags so they can easily be matched up in the header file.
You should be able to safely remove the header tags and anything within it. That is unless there is something in there you still want to preserve. This gives you complete control of the initial portion of the page. As long as the required elements remain, you can do whatever else you want with the code.
if all this above by @bcworkz (that is very clear) still not get you in the right way, may you need to let see the code of your header theme in some way to someone that can put you in the right way. Or you’ll need to dive into code and resolve by your own.
Well this is a stupid consideration i know, but also i also would to consider …
It is not commonly easy to answer with same concept for themes done/coded in several ways, were is necessary to put eyes on, maybe, to know what can cause something. It is really easy for many, and i just ask my self:
it is a not free theme which you have pay for, really authors aren’t able to expend 1 second (as they should know there code it should require +- really 5 seconds!) to answer you about this!?
This is just a consideration, on about somebody do things over the internet, not about your questions, of course.