• Hi there!

    For the last little while, I have been working on gpc.cathexisdesign.com (soon to be relocated to its own domain soon) for a local candidate.

    We have decided to keep the home/front page as a static page and made the Campaign Blog (you’ll find the link to it on the sidebar menu on under Newsroom >> Campaign Blog on the menu at top) the blog page with all the latest postings.

    I formatted the website to have a <div id=”container”> in the header.php to encompass the whole design, while another <div id=”content”> encompasses the content (entry-content and side-content).

    The whole website looks great with the exception of the Campaign Blog page. When I set the reading settings on Campaign Blog, the design breaks down. Reading the source code reveals that the Campaign Blog page is calling on another instance of both <div id=”container”> and <div id=”content”> inside the original <div id=”content”>.

    So it looks like this:

    <div id="container">
    <div id="content">
    <div id="container">
    <div id="content">
    </div>
    </div>
    </div>
    </div>

    How can I fix this? Any help would be most appreciated! Thanks in advance!

    How can I fix this? Please help. I’m figuratively get sick everytime

Viewing 5 replies - 1 through 5 (of 5 total)
  • can you paste the code of single.php and of the ‘campaign blog’ template into a https://pastebin.com/ each and post the links to them here?

    Thread Starter contranegative

    (@contranegative)

    Hi! I assumed that you meant single.php and page.php (Campaign Blog is a page with Newsroom as its parent).

    They’re at:
    https://pastebin.com/3HmWJTgK
    and
    https://pastebin.com/PkSZBhZB

    Thanks for your help!

    none of those is displaying the ‘campaign blog’;

    could it be that the ‘campaign blog’ is a category archive page – which would be displayed by either category.php (or archive.php if the latter does not exist)

    can you paste category.php or archive.php ?

    Thread Starter contranegative

    (@contranegative)

    Sorry, I don’t think I understood your directions.

    However, we’ve made some last minute changes. We’ve decided to make the blog the front page, and making “A Message from…” into a post or page (under the About menu).

    So from here on, please ignore what I said about the Campaign Blog. We’ll change that link to the ‘Blog Archive’.

    The same problem sticks though, just now on the front page.

    Which templates would you have me show you now that I’ve made these changes?

    The id should be unique. Try renaming one of them, or use classes instead.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blog Post on Page and CSS problems’ is closed to new replies.