• EarlSnappy

    (@earlsnappy)


    Hi,

    I’m using using inspect element to try to figure out why a new page I’ve created a page from a new template doesn’t align with the others.

    (I created the homepage using a copied index.php in my child theme, the only thing that I changed in the template was I added my own sidebar, which I don’t think should have any effect.)

    The div that formats the top content area of both pages is:
    #primary.site-content

    The pages are http://www.cacec.org/ (text is lower than ‘About us’), and http://www.cacec.org/about-us/ – I created the homepage using a copied index.php in my child theme, the only thing that I changed in the template was I added my own sidebar, which I don’t think should have any effect.

    Any help on this is much appreciated, as have been really trying on this, and am confused, Earl

Viewing 2 replies - 1 through 2 (of 2 total)
  • For some reasons, both of that are missing entry-header. One of them missing the whole markup of that part, one of them missing only the text inside the markup.

    The one that missing only the text, with the markup still there, its css that has margin-bottom still takes effect creating the space there.

    You need to fix how you query the content of that, look into the get_template_part() inside your version of index.php and see what file it’s using, make sure it pulls entry-header.

    Thread Starter EarlSnappy

    (@earlsnappy)

    Hi Paul, thanks very much for that, your solution worked, I had got rid of the h1 previously, but had also deleted the class entry-header in my child theme files, lesson learnt, and thanks very much Earl

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Twenty Twelve] Alignment Of Content Div’ is closed to new replies.