Style of content looks nothing like the default style
stevemagruder - November 9, 2008 - 22:33
| Project: | MySite |
| Version: | 5.x-3.3 |
| Component: | - Style plugin |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I've attached a pic of how the MySite content looks on a Drupal site with the default style selected, and I have a pic for the default style too. They look nothing alike.
| Attachment | Size |
|---|---|
| MySiteContentBox.jpg | 25.34 KB |
| DefaultStyle.jpg | 9.68 KB |

#1
You have a CSS conflict somewhere.
Are you using a default Drupal theme, like Garland?
#2
A customized theme is being used. What kinds of things should I check for to determine a conflict? Could it be just issues in style.css?
#3
Most likely it is that the #mysite div id is not being inserted into the page output. This might also account for the 'missing add content' links issue.
My advice is to try it in Garland, and then compare the Garland HTML output to your custom theme's output.
Also make sure that the CSS files are being loaded properly. That could also be an issue.
#4
Thanks for the advice. Very appreciated!
#5
It turns out there was significant differences in what page.tpl.php printed in the center area. The page.tpl.php in our custom theme left out a lot of that (probably for a good reason by a previous developer), but I created a custom page-mysite.tpl.php to incorporate back what was needed to fix both of these problems.
Before:
<?phpif ($messages): print $messages; endif;
?>
I added back:
<?phpif ($mission): print '<div id="mission">'. $mission .'</div>'; endif;
?>
<?phpif ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif;
?>
<?phpif ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif;
?>
<?phpif ($tabs): print $tabs .'</div>'; endif;
?>
<?phpif (isset($tabs2)): print $tabs2; endif;
?>
<?phpif ($help): print $help; endif;
?>
and After:
<?phpecho $content;
?>
I added back:
<?phpprint $feed_icons
?>
Thanks again for the suggestions!
#6
Custom themes often do things like that. I was afraid the old coder had left out
<?phpprint $styles;
?>
Module developers almost always test against Garland, so if things disappear from your page, try switching themes. The problem is that modules have to dump their data into $content most of the time.