Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
DefaultStyle.jpg | 9.68 KB | stevemagruder | |
MySiteContentBox.jpg | 25.34 KB | stevemagruder |
Comments
Comment #1
agentrickardYou have a CSS conflict somewhere.
Are you using a default Drupal theme, like Garland?
Comment #2
stevemagruder CreditAttribution: stevemagruder commentedA 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?
Comment #3
agentrickardMost 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.
Comment #4
stevemagruder CreditAttribution: stevemagruder commentedThanks for the advice. Very appreciated!
Comment #5
stevemagruder CreditAttribution: stevemagruder commentedIt 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:
if ($messages): print $messages; endif;
I added back:
if ($mission): print '<div id="mission">'. $mission .'</div>'; endif;
if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif;
if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif;
if ($tabs): print $tabs .'</div>'; endif;
if (isset($tabs2)): print $tabs2; endif;
if ($help): print $help; endif;
and After:
echo $content;
I added back:
print $feed_icons
Thanks again for the suggestions!
Comment #6
agentrickardCustom themes often do things like that. I was afraid the old coder had left out
print $styles;
which would have meant no stylesheet loading.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.