• Resolved BAMFSWAG

    (@bamfswag)


    I’m just trying to remove the header from ALL pages. The way I had done it, it simply left that space blank and still had to scroll down to get to the content, meaning, the header was still there but invisible. I wish to remove it entirely so that the content can scoot to the top of the page. I’m not very knowledgeable with PHP, but I can copy & paste with the best of them. If anyone can help, that’d be great.

    Here’s the Header code…

    <?php
    /**
     * The template for displaying the header
     *
     * Displays all of the head element and everything up until the "site-content" div.
     *
     * @package WordPress
     * @subpackage Twenty_Fifteen
     * @since Twenty Fifteen 1.0
     */
    ?><!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' ); ?>">
    	<!--[if lt IE 9]>
    	<script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js"></script>
    	<![endif]-->
    	<?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="page" class="hfeed site">
    	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyfifteen' ); ?></a>
    
    	<div id="sidebar" class="sidebar">
    		<header id="masthead" class="site-header" role="banner">
    			<div class="site-branding">
    				<?php
    					if ( is_front_page() && is_home() ) : ?>
    						<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' 
    
    ); ?></a></h1>
    					<?php else : ?>
    						<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' 
    
    ); ?></a></p>
    					<?php endif;
    
    					$description = get_bloginfo( 'description', 'display' );
    					if ( $description || is_customize_preview() ) : ?>
    						<p class="site-description"><?php echo $description; ?></p>
    					<?php endif;
    				?>
    				<button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
    			</div><!-- .site-branding -->
    		</header><!-- .site-header -->
    
    		<?php get_sidebar(); ?>
    	</div><!-- .sidebar -->
    
    	<div id="content" class="site-content">
Viewing 5 replies - 31 through 35 (of 35 total)
  • Thread Starter BAMFSWAG

    (@bamfswag)

    I am using a plugin to create the slider gallery, yes. And yes, I just turned off the right-click plugin for you.

    Thread Starter BAMFSWAG

    (@bamfswag)

    It’s called “Photo Gallery” by WebDorado.

    Thread Starter BAMFSWAG

    (@bamfswag)

    If it’s because of the plugin itself, I don’t want to alter the coding(which I didn’t even know I could do until now). So yeah, if that’s the case, I’ll leave the black background around the slider gallery alone. Thank you so much again!

    The black background behind the slideshow is indeed created by the Photo Gallery plugin that you’re using. There is a page within the options for that plugin to adjust the themes, but in order to use it, you have to upgrade to the paid version of the plugin.

    Happy to help! Thanks for using WordPress!

    Thread Starter BAMFSWAG

    (@bamfswag)

    Ah. Gotcha. Then, I think we are done with this…for now. ?? Can’t thank you enough! I gave you a shout out on my soon-to-be index page. Cheers!

Viewing 5 replies - 31 through 35 (of 35 total)
  • The topic ‘Header Removal From All Pages’ is closed to new replies.