Custom template layout woes
-
Hi,
I created a child theme with 2 custom templates last year (using page.php as my source and adding in HTML elements I thought I needed). I’ve been going back and cleaning up my slapped-together CSS stylesheet and HTML. However, now I’ve run into trouble with the layout. I’m decent at HTML & CSS, not so great with PHP.
Link here, explanation below.
What I’m trying to go for is a sidebar with a submenu on the left and the content on the right. As you can see, on this and other pages, the content is below the sidebar. At this point, I can’t figure out why this is.
I tried floats, positioning, margins, etc. and checked for open div tags. I’ve been through the Support archives, but I haven’t found something answering this question. I’ve tried stripping down the margins and padding on each div to figure out the natural positioning to no avail.
I was hoping maybe a fresh pair of eyes could check out my template page and stylesheet to figure out why things won’t line up. (I hope I included these Pastebin snippets properly)
PHP Template: <script src=”https://pastebin.com/embed_js.php?i=1XUhrwn2″></script>
CSS: <script src=”https://pastebin.com/embed_js.php?i=xifDEART”></script>
Thank you in advance for your help!
- The topic ‘Custom template layout woes’ is closed to new replies.