• I’m using the theme ‘Grunge Wall’ which I like very much. Through looking at the forums I’ve figured out how to change the default text colors but I can’t find how to remove the ‘name’ of the page from showing up when the page is opened by a viewer.

    There’s a Page Menu horizontally across the top that highlights in color the page that’s selected so it’s redundant to show the actual name of the page in the page itself. I’m pretty know to php so if someone knows the exact code to change in the style.css that would be incredibly helpful. My site- totally unfinished so far- is neworleansbook.com.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • looks like you have two Home in menu as you created a static Home page one of them is hard coded in header.php if you can paste header.php in https://wordpress.pastebin.com so that can tell you how to remove it.

    Thread Starter NolaWordP

    (@nolawordp)

    You’re right- I had a page called Home but this theme I think had it’s own ‘Home’ page also. So I just deleted my own, but now I get a 404 error from the menu.

    I posted the code from the header.php- not sure if it’s findable. I’m new to this forum so let me know if I need to do anything else. I really appreciate the help.

    Thread Starter NolaWordP

    (@nolawordp)

    The link to the code is: https://pastebin.com/f0cAQWrE

    Did you paste the code as i do not see it when I click on link

    can you paste again

    The reason you had two Home links is that you created home page and made static and the home page theme has is post page. Since you want to use Home as statis page we need to delete the hard coded link from header.php

    Thread Starter NolaWordP

    (@nolawordp)

    I’ve pasted the code below- sorry if it’s not supposed to go here. I tried to post it in the pastebin but it didn’t seem to work. I’ll get the hang of the forum eventually…

    Yes, I do need to resolve the ‘Home’ page from being hard coded also. I wasn’t sure how to do that. I also tried to put .post-headline {display:none} somewhere in the code below to remove the page name from the body but it didn’t work. If you could let me know exactly where I need to change stuff that’d be really helpful. I know VB coding but none of this so far.. Thanks!

    Thread Starter NolaWordP

    (@nolawordp)

    Here’s the page code:

    <?php get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<h2><?php the_title(); ?></h2>
    			<div class="entry">
    				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    
    				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    	<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Thread Starter NolaWordP

    (@nolawordp)

    Ah, I figured it out finally. I just removed <h2><?php the_title(); ?></h2> from the page.php file. Had to look around to find it- thanks for pointing me in the right direction.

    Also, if you might be able to help with removing the extra ‘Home’ button from the navigation that’d be great- I still can’t figure that out-thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to take out Page name from top of actual page’ is closed to new replies.