• Resolved mrblues

    (@mrblues-1)


    Hi!

    I would like to remove page title & background banner for the title.

    In my site that banner is the gray one that can be seen here: LINK

    So there must be some CSS code to do that but so far I haven′t found it.

    Cheers!

    mrblues

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @nathan93

    1. For this you need to create child theme.Reference Here forChild theme
    2. Now look for page.php file in parent theme’s folder and copy and paste that file in child theme’s folder.
    3. Now you need to edit that particular file in child theme’s folder.
    4. In that file copy and paste below 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 modulus
     */
    get_header();
    ?>
    <?php $breadcrumb = get_theme_mod( 'breadcrumb',true ); ?>    
    
    <div id="content" class="site-content">
    		<div class="container">
    
    		<?php $sidebar_position = get_theme_mod( 'sidebar_position', 'right' ); ?>
    		<?php if( 'left' == $sidebar_position ) :?>
    			<?php get_sidebar('left'); ?>
    		<?php endif; ?> 
    
    	<div id="primary" class="content-area eleven columns">
    		<main id="main" class="site-main" role="main">
    
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php get_template_part( 'content', 'page' ); ?>
    
    				<?php
    					// If comments are open or we have at least one comment, load up the comment template
    					if ( comments_open() || get_comments_number() ) :
    						comments_template();
    					endif;
    				?>
    
    			<?php endwhile; // end of the loop. ?>
    
    		</main><!-- #main -->
    	</div><!-- #primary -->
    
         <?php if( 'right' == $sidebar_position ) :?>
    			<?php get_sidebar(); ?>
    		<?php endif; ?>
    
    <?php get_footer(); ?>

    5. And activate child theme and this will effect the pages of your site not the single post you particularly visit.But you can do that too.
    Note: Please customize files of child theme, so your changes will not overwrite on theme update.

    Thank You!!

    Thread Starter mrblues

    (@mrblues-1)

    Hi, so you′re sure there ain′t some simple CSS code such

    whateverthecodeis {
       display: none;
    }

    which you could add to custom CSS plugin?

    Cheers!

    mrblues

    Hi @mrblues

    Yes you can add custom CSS as below:

    .breadcrumb {
        display: none;
    }

    By this single post title will also be hidden.

    Thanks and Cheers!!

    Thread Starter mrblues

    (@mrblues-1)

    now that was just the code I was searching for, thanks sanjog!! ??

    Hi @mrblues

    If you don’t want your title be hidden on single post and only only pages then you can use below CSS:

    .page .breadcrumb{
    	display: none;
    }

    Very happy to hear that your problem was solved.
    Please don’t forget to mark your thread as resolved.
    It will be easy for other to find their solution related to this and marked as resolved.

    Best Regards!!
    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘page title & background banner for the title’ is closed to new replies.