Download & Extend

Style of content looks nothing like the default style

Project:MySite
Version:5.x-3.3
Component:- Style plugin
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

AttachmentSize
MySiteContentBox.jpg25.34 KB
DefaultStyle.jpg9.68 KB

Comments

#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

Category:bug report» support request

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:

<?php
if ($messages): print $messages; endif;
?>

I added back:

<?php
if ($mission): print '<div id="mission">'. $mission .'</div>'; endif;
?>

<?php
if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif;
?>

<?php
if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif;
?>

<?php
if ($tabs): print $tabs .'</div>'; endif;
?>

<?php
if (isset($tabs2)): print $tabs2; endif;
?>

<?php
if ($help): print $help; endif;
?>

and After:

<?php
echo $content;
?>

I added back:

<?php
print $feed_icons
?>

Thanks again for the suggestions!

#6

Status:active» closed (fixed)

Custom themes often do things like that. I was afraid the old coder had left out

<?php
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.

nobody click here