• Hi there,

    I’ve sucessfully removed page titles from my site by commenting out the php in a copy of page-content.php.

    However, there is a big gap between the header and the start of the text. I’ve tried using developer tools on Google Chrome to identify the css I need to change, but I’ve hit a conceptual rock: the html contains ids (prefixed by #), but the stylesheet only contains classes. I can’t work out which css to change to affect the required elements. This is what chrome displays when I select the areas I want:

    <div#main.wrapper
    header#masthead.site-header

    the site is:creativecounsellingdevon.co.uk
    Any help much appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Do not edit the Twenty Twelve theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes. Or use a custom CSS plugin.

    Thread Starter Robin73

    (@robin73)

    Thanks, but I did my commenting out on a copy in my child theme folder.

    Try using Firefox with the Firebug add-on for this kind of CSS troubleshooting. Or use whatever developer tool is available in your web browser.

    Thread Starter Robin73

    (@robin73)

    No offence intended, but I’m wondering if you have read my posts fully? I only ask because both your replies seemed not to have taken account of what I had written previously. I mentioned in my original post that I was using a copy of the relevant php file, and in the second that I was using Google Chrome developer tools, but having some difficulty.

    Yes – I did read your psots.

    1) Firefox + Firebug is much better than Chrome’s developer tool.
    2) CSS has nothing to do with .php files. It’s stored in .css files.
    3) I’m sorry but it is really beyond the scope of these forums to deal with general CSS issues. Try a dedicated CSS resource such as https://www.css-discuss.org/ instead.

    Thread Starter Robin73

    (@robin73)

    Thanks. I imagine many other people have removed the page titles from their WP sites and noticed that it leaves a big gap. Do you know if there are any other threads covering this issue? I’ve tried searching but no luck yet.

    Every site is different. If necessary, try a dedicated CSS resource such as https://www.css-discuss.org/ instead.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Page titles gap’ is closed to new replies.