Include file in template moving sidebar to bottom
-
Hi,
I tried the aquoid.com forum where the post had lots of views but no responses. I am unsure if cross-posting here is wise or will get any different audience.
I hope I am explaining myself well. The post there says:
I am migrating from my previous theme, discovering Suffusion was a great surprise! I am testing the migration using the theme test drive.
Previously I have had a number of custom templates which simply were copies of the main template with some include files added – I load the include files into the template directory, where they get updated on occasion. My motivation here was I had some folded up what’s new information I reuse on a number of pages, this way I can change it in one place (the include file) and it could be seen in multiple places. I was going to do the same with Suffusion or maybe there better ideas to achieve the same?
Trying my outlined solution I copy the default template, page.php, to create a custom template and in suffusion_after_begin_post before the original post call I include, e.g.
? ?? ?? ?? ?<h4>General Update</h4>? ?? ? ? ?? ?? ?? ?<?php include(TEMPLATEPATH? . '/whats_new_general.php'); ?
? ?? ?
This works, however my sidebar contents now appear under the page rather than at the right side for this page only. My include files just have a table and use 2 css classes which set the column width, totalling 500px.
Any advice appreciated on what the issue might be or other ideas.
Thanks! Tom.
- The topic ‘Include file in template moving sidebar to bottom’ is closed to new replies.