Problem with Artisteer theme and pod pages

0

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

alt text

asked Sep 9 '10 at 9:11

tommynz

16

add comment
enter at least 15 characters

4 Answers

1

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

answered Sep 12 '10 at 7:24

tommynz

16

add comment
enter at least 15 characters
0

thats your wordpress sidebar. Remove some code that looks like this:

<?php get_sidebar(); ?>

answered Sep 9 '10 at 7:01

wesbos

56

add comment
enter at least 15 characters
0

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 &lt;?php echo $content; ?&gt; 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

answered Sep 9 '10 at 7:57

tommynz

16

add comment
enter at least 15 characters
0

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.

answered Sep 9 '10 at 7:44

Fike

208

edited Sep 9 '10 at 7:58

add comment
enter at least 15 characters