• Apologies if this topic has come up a lot. I have searched through a lot of posts/tutorials and none of the solutions seem to work for me. I’m just learning my way around WordPress and this has proved a frustrating problem which I’m sure is very simple to rectify.

    I need to remove/hide the headings in the content (not the navbar) on each ‘page’ of my site, eg where it says ‘Home’ just above the text on the static homepage etc. Please see: http://www.themuckyduckbrighton.co.uk/blog/

    I’ve seen advice to remove from page.php:

    <h2><a href=”<?php the_permalink(); ?>” title=”<?php the_title(); ?>”><?php the_title(); ?></a></h2>

    but i can’t see this in page.php. I’m on the defaul theme twentyeleven.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues.

    For this reason, it is recommended that you consider creating a child theme for your customisations. Once your child theme is active, we should be able to help with the customisation.

    Thread Starter eddietaylor

    (@eddietaylor)

    Ah interesting, thank you. Is there a way of restoring the default theme in case I edited anything?

    Yes. Re-upload a fresh copy of the theme’s folder to your wp-content/themes folder using FTP (or whatever file management application your host provides).

    Thread Starter eddietaylor

    (@eddietaylor)

    Hi Esmi, thanks for your help so far. I’ve created a basic child theme with just the style.css page as I’m not sure what I will need to change. I’ve also activated the theme.

    Any ideas where to go from here?

    You don’t appear to be importing the parent’s style into your child’s style.css file. Have a look at “Example of a basic Child Theme” in Child_Themes.

    Thread Starter eddietaylor

    (@eddietaylor)

    Sorry, there’s so much to learn I keep missing basic stuff. Thanks for your help Esmi!

    I’ve imported the parent theme now.

    Using the Specific CSS or Javascript plugin, I’ve found a workaround which gets rid of the heading on a page-by-page basis, by inputting:
    <style> h1 {display:none;} </style>
    However I feel this isn’t ideal as I’d like to be able to change it globally on style.css (if I put the same code into style.css it is ignored). Also I don’t really want to hide all h1 tags, just the automatically generated headings at the top of pages. Have they got a class or ID?

    Moderator keesiemeijer

    (@keesiemeijer)

    For pages copy content-page.php and put it in your child theme and remove this:
    <h1 class="entry-title"><?php the_title(); ?></h1>

    Thread Starter eddietaylor

    (@eddietaylor)

    Thank you so much for your help on this esmi & keesiemeijer. Your advice has solved my problem, and given me a better understanding of WordPress themes – exactly what I needed!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Removing Page Headings/Titles’ is closed to new replies.