Problem with Artisteer theme and pod pages
Hi
I have created a pod with associated pages and templates. The problem I have is that at the bottom of all the pod pages, underneath the expected pod page content, it shows a search box, a list of all the Wordpress pages, an archive section and categories section (see screenshot below). Normal Wordpress pages that use the standard page template do not have this problem.
I generated my theme using Artisteer and I have found the following:
In page.php the content is displayed by the following code: <?php echo $content; ?>
The extra bit is being returned as part of $content
In footer.php is the following code: $content = ob\_get\_clean();
This is what is populating the variable $content
I cannot figure out what ob\_get\_clean() is or how it works. I am assuming that I need to modify it to stop the extra items appearing. I am also assuming that it is doing something similar to the widget sidebars - when there is no content it is putting in some default content - possibly the way pod pages work it thinks they are empty pages?
Has anyone come across this before, or have any advice on how to fix it?
Thanks Tommy
4 Answers
Ok, I have found a work around. As I pointed out earlier, it is being returned as part of the page 'content'. It is actually contained inside the art-content div, below the actual expected content. The extra bit is also inside a div with the id="sidebar".
My workaround was to just create a css style to set the id sidebar to display: none when it is inside art-content.
Not ideal but it seems to do the trick.
Thanks to those who tried to help.
Cheers Tommy
thats your wordpress sidebar. Remove some code that looks like this:
<?php get_sidebar(); ?>
Hi Wesbos
Unfortunately it is not the sidebar. The sidebar is on the left - you can see the bottom of it in the screenshot. The screenshot is only showing the bottom half of the screen.
The unwanted bit is being added by the call to <?php echo $content; ?> in page.php.
$content in turn is being populated by the call to $content = ob\get\clean(); in footer.php.
The wordpress loop is no longer in page.php in the new Artisteer themes. I am not sure where to look to find it now.
Thanks anyway. Tommy
I don't know why, but pods output this automatically. I don't remember exactly how i've managed to fix this, but most possibly by creating individual theme files for pods.
edited Sep 9 '10 at 7:58
