More Strange Behavior

Permalink
Hi All,

I was having trouble with my theme not displaying some content, so after getting some help from the community, I added the following to my view.php file

<?php print $innerContent; ?>

I thought the problem was fixed, but now it appears the same pages are displaying the content twice. I can't delete the duplicate area/content. The problem goes away when I switch themes but I can't for the life of me figure out what I've done wrong in my theme. Any help would be much appreciated. I am also willing to pay someone a bit of money to go in and inspect my code and find the problem. I've attached a screenshot as an example of the user profile page.

Thanks,

Nick

1 Attachment

nickduncs
 
12345j replied on at Permalink Reply
12345j
It looked fine to me, but maybe I'm not seeing it. have you tried using a different browser? A possible fix is deleting everything, and then just inserting
<?php 
defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php'); ?>
   <div id="central" class="no-sidebar">
      <div id="body">   
         <?php 
         print $innerContent;
         ?>
      </div>
      <div class="spacer">&nbsp;</div>      
   </div>
<?php  $this->inc('elements/footer.php'); ?>


If that doesn't work try copying your default text, and replacing the content and sidebar parts of it with
<div id="central" class="no-sidebar">
      <div id="body">   
         <?php 
         print $innerContent;
         ?>
      </div>
      <div class="spacer">&nbsp;</div>      
   </div>

which is basically the same, just without the load header and footer text.
Mnkras replied on at Permalink Best Answer Reply
Mnkras
in your view/header remove the Main area,

if its in the header, move it to the <pagetype>.php file
nickduncs replied on at Permalink Reply
nickduncs
Awesome - all sorted now! thanks for helping me out :)

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.